Assigning NSInteger property in iPhone App Assigning NSInteger property in iPhone App sqlite sqlite

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 typedefed to an int, on OS X it is typedefed 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.