今天是个好日子。
我在表视图控制器中有这段代码:
else if (editingStyle == UITableViewCellEditingStyleInsert) {
if([[UIScreen mainScreen] bounds].size.height == 568)
{
citySearch = [[CitySearch alloc] initWithNibName:@"CitySearchIphone5" bundle:nil];
}
else
{
citySearch = [[CitySearch alloc] initWithNibName:@"CitySearch" bundle:nil];
}
UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:citySearch];
[self presentModalViewController:navController animated:YES];
所以,当它出现时,我看到了视图,那就是越界了,Xcode 写了这个
不鼓励在分离的视图控制器上呈现视图控制器
如何解决?