Assigning NSInteger property in iPhone App
NSInteger
is not a class, it is a basic type like an int
or long
. On iOS NSInteger
is typedef
ed to an int
, on OS X it is typedef
ed to a long
. Therefore, you shouldn't try to retain
an NSInteger
. You should change your property declaration to:
@property (nonatomic, assign) NSInteger participant_Id;
The same goes for your coffeeID
property.