In objective-c, what is the default value for a field if no default value is provided?
eg UIButton, NSArray, NSMutableSet, UIActivityIndicatorView, int , BOOL
And what is the different between instance variable default value and local variable default value ?
Instance variables are zeroed by the runtime on allocation (false, NO, nil, NULL, whatever). Stack variables have no default value set; they’ll contain whatever was in memory before they were put there.