ios - TableView :viewForHeaderInSection: default value?

标签 ios objective-c uitableview return return-value

我想要一个自定义部分标题,其余部分是默认标题。

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section {
     return ???;
}

我要返回什么来只提供默认标题 View ?

最佳答案

默认的标题 View 是nil,因为根本没有标题!

关于ios - TableView :viewForHeaderInSection: default value?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1552725/

相关文章:

ios - 更改 UITableViewCell 中 accessoryView 的背景颜色

swift - 协议(protocol)在单元中被重置

iphone - 仪器,目标运行失败 : Remote exception encountered : 'Failed to get task for pid'

ios - XCode 部署目标 iOS 6 = 兼容性?

ios - iPhone开发在dispatch_async中调用NSURLConnection并在mainRunLoop中读取didReceiveResponse

ios - 将图像添加到 View (背景)

ios - 在 cellForRowIndexPath 中的每个自定义单元格中创建标签

iphone - 在其点击事件中获取按钮标题

ios - 是否可以在没有 Web 服务器的情况下创建 App Clip

ios - 在模态视图中,在 PresentViewController 不起作用后 DismissViewControllerAnimated