viewController
我已经看到应用程序会在单击表项后立即推送到新视图,然后activityIndicator
在加载新视图时显示一段时间。我知道如何将 activityIndicator 添加到ProfileViewController
,但是如何在单击项目后立即将表格推送到新控制器而不是等待内容加载?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
*)indexPath
{
ProfileViewController *profileViewController = [[ProfileViewController alloc] initWithNibName:@"ProfileViewController" bundle:nil];
//profileViewController.title = [[news objectAtIndex:indexPath.row] objectForKey:@"name"];
profileViewController.newsArticle = [news objectAtIndex:indexPath.row];
[self.navigationController pushViewController:profileViewController animated:YES];
}
任何帮助或指导都会很棒。谢谢你们!