There's a big hint in the error message!
In C and Objective C, an int
is a primitive data type. You've written int *
, which means "a pointer to an int", whereas it looks like you just wanted an int.
So change your property to this:
@property (nonatomic, assign) int myInt;
For more info, google "C pointers" and you'll find information like this: http://pw1.netcom.com/~tjensen/ptr/pointers.htm
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…