UIColor 在更新到 xCode 7.3 后需要一个类型 [英] UIColor expected a type after update to xCode 7.3
本文介绍了UIColor 在更新到 xCode 7.3 后需要一个类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的项目在更新到 7.3 版本后停止编译.目前主要问题是在我想返回 UIColor
时的头文件中.xCode 告诉我 Expected a type
错误.有没有办法处理这种情况?
My project stop to compile after was updated to 7.3 version. For this moment main problem is in header files when I want to return UIColor
. xCode tells me Expected a type
error. Is there some way to handle with this situation?
我的代码(没什么特别的)
my code (nothing special)
#import <Foundation/Foundation.h>
@interface NSString (Color)
- (UIColor *)rgbColor; //Expected a type
- (UIColor *)hexColor; //Expected a type
@end
推荐答案
You should import uikit 如果您使用的是 UIColor.
You should import uikit if you are using UIColor.
这篇关于UIColor 在更新到 xCode 7.3 后需要一个类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文