So, my UITableViewCell has UITableViewCellAccessoryDetailDisclosureButton, and when somebody clicks on it it make long time just to show next view screen... so I want to show some "rolling wait image" (UIActivityIndicatorView ?) say next to UITableViewCellAccessoryDetailDisclosureButton in this cell开发者_开发百科, but how do I do it right? How to use UITableViewCellAccessoryDetailDisclosureButton properly?
Thank you.
You can use a UIActivityIndicator as a UITableViewCellAccessory like so:
UIActivityIndicatorView *activityView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleGray];
[activityView startAnimating];
cell.accessoryView = activityView;
[activityView release];
精彩评论