NSInteger , such as float , are not Objective-C and do not follow the usual save / release model. They are just primitives. Assigning values ββto this property will suffice.
@property (readwrite, assign) NSInteger buttonCount;
should be all you need.
NSNumber , however, follows the usual save / release cycle, so add attributes accordingly.
source share