TapkuLibrary错误

时间:2014-10-13 07:43:56

标签: ios xcode

我已下载TapkuLibrary并尝试在Xcode Excepted'上运行它:'出现在两个地方我该怎么办呢

enter image description here

- (instancetype) initWithFrame:(CGRect)frame symbol:(id)symbol normalType:(TKInputKeyType)normal selectedType:(TKInputKeyType)highlighted runner:(BOOL)runner NS_DESIGNATED_INITIALIZER;


- (instancetype) initWithStyle:(UITableViewStyle)style NS_DESIGNATED_INITIALIZER;

1 个答案:

答案 0 :(得分:0)

我想出答案

这是属性

__attribute__((objc_designated_initializer))

所以我必须在我的pch中定义它

#ifndef NS_DESIGNATED_INITIALIZER
#if __has_attribute(objc_designated_initializer)
#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
#else
#define NS_DESIGNATED_INITIALIZER
#endif
#endif

所以我可以在xCode 5中使用它