gpt4 book ai didi

iphone - 无法识别的选择器已发送到UIRefreshControl

转载 作者:行者123 更新时间:2023-12-01 19:11:12 25 4
gpt4 key购买 nike

我收到此错误:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MasterViewController setRefreshControl:]: unrecognized selector sent to instance 0x2681e0'

如何解决此问题,因为在模拟器中我的应用程序正在运行,但是在具有相同代码的设备上我的应用程序未运行。

最佳答案

我希望您的模拟器是iOS6 Simulator,并且您尝试运行的设备可能具有较低的OS版本。


UIRefreshControl Class Reference

可用性:在iOS 6.0和更高版本中可用。
Refresh controliOS6的新功能。因此,如果要支持iOS5,最好的办法是检查刷新控件类是否存在(可以使用NSClassFromString),如果不存在,则不使用它或使用替代方法。

关于iphone - 无法识别的选择器已发送到UIRefreshControl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16479880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com