开发者

UIDevice properties not working in static library

开发者 https://www.devze.com 2023-04-03 09:26 出处:网络
I have created a static library in Iphone SDK in which I used some UIDevice properties. When I run the app, this xcode show this error

I have created a static library in Iphone SDK in which I used some UIDevice properties. When I run the app, this xcode show this error UIDevice Undeclared... Even the same code is running perfectly fine while 开发者_运维百科I don't create static libraries and just build the source files.


Have you tried adding

#import <UIKit/UIKit.h>

...to the top of your class .h file? I was running into similar problems as you are having, but when I added that import into my .h files that seemed to fix a lot of the errors.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号