我已经设置了一个表格视图。在主视图中,我使用了一条警告消息:如果用户单击确定按钮,则表视图将打开。
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex
{
if (buttonIndex == 0) {
//do nothing
}
else if (buttonIndex == 1) {
myTableViewController *nextViewController = [[myTableViewController alloc] initWithNibName:nil bundle:nil];
[self presentViewController:nextViewController animated:YES completion:nil];
}
}
表格视图确实会显示,但缺少某些部分。顶部有一个导航栏,底部有一个工具栏,都不见了。仅显示单元格。
当我从其他方法过渡到这个表格视图时,它可以正常显示,所以我不知道出了什么问题。
任何人都可以帮忙吗?谢谢!