iphone - 调用方式 - (CGFloat)tableView :(UITableView *)tableView heightForFooterInSection:(NSInteger)section without reloading

标签 iphone objective-c ios ipad

我做了:

[tableView setNeedsLayout][tableView setNeedsDisplay],但是这不会调用该委托(delegate)。有没有一种方法可以在不重新加载数据的情况下重新布局 tableView(即:调用 reloadData)

最佳答案

尝试:

[tableView beginUpdates];
//do stuff...
[tableView endUpdates];

关于iphone - 调用方式 - (CGFloat)tableView :(UITableView *)tableView heightForFooterInSection:(NSInteger)section without reloading,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9598124/

相关文章:

iPhone UIDocumentInteractionController PresentOpenInMenuFromRect 取消按钮没有响应

iphone - NSPredicate 基于此对象是否与另一个对象相关?

ios - 将数据从一个 View 传递到另一个 View (Storyboard,iOS)

objective-c - 字典 objectforkey 的 if 语句 : @"key" when value is <null>

ios - NavigationBar 中的 UISearchBar 颜色

ios - 为什么我会收到 UIBarButtonItem 自定义警告?

iphone - 是否可以在 iPhone 应用程序的非续订订阅中提供免费试用期?

iphone - 在Xcode 3.2.2中创建NSManagedObject子类文件

ios - Mapbox Annotation 图像居中

iOS 9 和 XCode 7 dylib 问题