i am getting a warning for
spinner.hidesWhenStopped;
warning : Expression result unused
hope any one know this
Thank you very much
Well hidesWhenStopped
is a property of spinner
and you don't do anything with it. Try setting a value as in
spinner.hidesWhenStopped = YES;
or
spinner.hidesWhenStopped = NO;
It seems you are trying to set the activity indicator to hide when stopped animating. The line spinner.hidesWhenStopped
doesn't call the setter method. If you want to call the setter method you have to either use,
spinner.hidesWhenStopped = YES;
or,
[spinner setHidesWhenStopped:YES];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.