pushViewController需要时间来导航

时间:2017-01-19 09:37:56

标签: ios objective-c iphone uitableview uiviewcontroller

我有两个ViewControllers。在我的第一个ViewController中有一个按钮,我可以从中导航到第二个ViewController。

在第二个ViewController中有一个UITableView,它只是单元格。我用故事板进行设计。这个细胞不是静态细胞,我重复使用这些细胞。

我的问题是当我在iPhone 4s(iOS 9.3.5)中运行应用程序并从第一个ViewController导航到第二个ViewController时,应用程序会冻结几秒钟然后导航到第二个ViewController。

这个相同的代码在iPhone 5及更高版本的iPhone中运行得非常好。我使用以下代码进行导航

SecondViewController *secondController = [self.storyboard instantiateViewControllerWithIdentifier:@"storyIdSecondController"];
[self.navigationController pushViewController:secondController animated:TRUE];

0 个答案:

没有答案