【发布时间】:2013-10-30 05:17:16
【问题描述】:
我使用类似的 UIRefreshControl(没有 UITableViewController):
UIRefreshControl *refreshControl = [UIRefreshControl new];
[refreshControl addTarget:self action:@selector(viewDidBeginRefreshing:) forControlEvents:UIControlEventValueChanged];
[self.table addSubview:refreshControl];
问题是刷新轮位于 UINavigationController 的半透明栏 (ios7) 下方。 StackOverflow 上关于这个问题的话题很少。而且他们没有给我带来任何有价值的解决方案。
例如,我希望将 UIRefreshControl 的 y 位置向下 80px。
注意:我知道不建议在 UITableViewController 之外使用 UIRefreshControl。所以不需要警告它。
【问题讨论】:
-
可以很好地注意到我的 UITableView 设置为自动布局,就像我的其他视图一样,以编程方式。 (但应该与它无关)
标签: ios uinavigationcontroller ios7 uirefreshcontrol