【发布时间】:2023-03-13 03:23:01
【问题描述】:
我在我的应用程序中使用 StoryBoard,并且我在导航控制器中嵌入了一个 tableviewcontroller。
当我没有将数据加载到 tableview 中时,导航栏会正确显示,但是当我将数据加载到 tableview 中时,导航栏会消失并且 tableview 会扩展全屏。发生这种情况有什么原因吗?
【问题讨论】:
标签: iphone uitableview uinavigationcontroller
我在我的应用程序中使用 StoryBoard,并且我在导航控制器中嵌入了一个 tableviewcontroller。
当我没有将数据加载到 tableview 中时,导航栏会正确显示,但是当我将数据加载到 tableview 中时,导航栏会消失并且 tableview 会扩展全屏。发生这种情况有什么原因吗?
【问题讨论】:
标签: iphone uitableview uinavigationcontroller
如果您定义高度标题部分有帮助吗? :
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
return 44.0;
}
【讨论】: