objective c - What's the difference the member variable between in a interface and @property (nonatomic, strong)? -


@interface chargeview (){     nsstring* billid;     int clickrow;     nsmutablearray  *arr1; }  @property (nonatomic, strong) nsmutablearray *arr2; 

what's difference between arr1 , arr2? better or write anywhere if like?

the property generates accessors -(nsmutablearray *)arr2 (getter) , -(void)setarr2:(nsmutablearray *)arr2 (setter). further generates corresponding instance variable _arr2 (the underscore convention ivars). attributes of property determine behavior of accessors. instance, if property marked atomic, accessors synchronize access ivar.

on other hand, arr1 ivar , have write accessors (if need any) yourself.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -