I'm setting up a UIBarButtonSystemItemRefresh, and want to rotate the refresh icon of the UIBarButtonSystemItemRefresh until refresh done. How can I achieve this?
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(refresh)];
- (void)refresh {
//start rotate the refresh icon animation
}
- (void)done {
//stop rotate the refresh icon animation
}