大家好。
我在表视图控制器中有以下代码:
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会显示以下内容:
不建议在分离的视图控制器上呈现视图控制器
如何解决这个问题?