No known class method for selector "sharePhoneWidth"解决方法

今天在项目中[AppDelegate sharePhoneWidth]这行遇到No known class method for selector "sharePhoneWidth"错误,当在其他类中去调用这个类时 大概意思应该是找不到该类方法。仔细一看原来是在AppDelegate.h文件忘记声明

//屏幕宽度

+ (CGFloat)sharePhoneWidth; 在.h声明一下就可以了。

版权声明:本文为博主原创文章,未经博主允许不得转载。

文章来自:http://blog.csdn.net/xiangrikui524/article/details/46972117
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3