I can successfully click only the following view in my iPhone application. However, for the next view to retrieve the data to fill UITableViews, sometimes the wait time may be a few seconds or a little longer depending on the connection.
During this time, the user may think that the application is blocked, etc. Therefore, to counter this problem, I think that implementation UIActivityIndicatorswould be a good way to tell the user that the application is working.
Can someone tell me where I could implement this?
Thank.
pushDetailView method
- (void)pushDetailView {
[tableView deselectRowAtIndexPath:indexPath animated:YES];
DetailsImageCell *cell = (DetailsImageCell *)[tableView cellForRowAtIndexPath:indexPath];
AlertsDetailsView *controller = nil;
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad){
controller = [[AlertsDetailsView alloc] initWithNibName:@"DetailsView_iPad" bundle:nil];
} else {
controller = [[AlertsDetailsView alloc] initWithNibName:@"DetailsView" bundle:nil];
}
[controller setID:[cell getID]];
[self.navigationController pushViewController:controller animated:YES];
source
share