我一直在使用-
[tableView setContentOffset:CGPointZero animated:NO]
在 iOS6 中以确保我的 tableViews 位于视图的顶部。我一直在为 iOS7 重构,它似乎已经停止工作。我不得不替换为 -
[tableView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:NO];
在这两种情况下都适用。
有人有什么想法吗?
我一直在使用-
[tableView setContentOffset:CGPointZero animated:NO]
在 iOS6 中以确保我的 tableViews 位于视图的顶部。我一直在为 iOS7 重构,它似乎已经停止工作。我不得不替换为 -
[tableView scrollRectToVisible:CGRectMake(0, 0, 1, 1) animated:NO];
在这两种情况下都适用。
有人有什么想法吗?