Objective C problem defining properties -
When I try to define an int as an asset in Objective-C, I get an error ( Not of type object). I have tried using NSInteger and int, but neither has worked.
Code: Full seat;
@property (non-nominal, retaining) int seats;
You can not have an int or NSInteger because they are primitive types - not objects instead use the following Do:
@property (nonatomic, assigned) int seats;
Comments
Post a Comment