我试图将一些类别方法导入到我的Swift文件中,但没有成功。
ios-Bridging-Header.h:
#import "UIColor+Hex.h"
UIColor+Hex.h
#import <UIKit/UIKit.h>
@interface UIColor (Hex)
+ (UIColor *)colorWithHex:(NSUInteger)hexInt;
+ (UIColor *)colorWithHexString:(NSString *)hexString;
@end
我希望自动完成可以显示UIColor(hexInt: NSUInteger)
和UIColor(hexString: String)