iOS UIRefreshControl 在单 View 应用程序中,没有表

标签 ios uirefreshcontrol

我想在我的 iPhone 应用程序中使用 UIRefreshControl 来触发几个 UISwitch 控件的刷新,但似乎刷新控件仅适用于表格 View 。这是真的?有什么建议可以在没有表格的情况下获得此功能?

最佳答案

有一个模仿 iOS6 的 UIRefreshControl 外观的开源控件。它也适用于 iOS 旧版本和 UITableView 以外的控件:

https://github.com/Vortec4800/ODRefreshControl

希望这可以帮助。

关于iOS UIRefreshControl 在单 View 应用程序中,没有表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12786475/

相关文章:

swift - swiftUI 下拉刷新数据

ios - 顶部和底部 UIcollectionView 上的 UIrefresh 控件

uitableview - 带有 UIRefreshControl 的导航栏中的 iOS 11 UISearchController 导致布局故障

iphone - UIRefreshControl 无限期挂起

ios - 在 UISplitViewController 中弹出 UINavigationController 会导致奇怪的转换

ios - 我们如何将验证码集成到 iOS 应用程序中?

iphone - 如何在 Iphone 应用程序中创建日历?

ios - AVSpeech合成器: AVSpeechSynthesisIPANotationAttribute seems like does not support Chinese

ios - Xcode 11.2 - 在钥匙串(keychain)中找不到指定的项目