Cannot initialize a parameter of type 'NSString *_Nullable' with an rvalue of type ''UITouchPhase"

在.mm文件中注册一个通知的时候,XCode 报了下面错误:

Cannot initialize a parameter of type 'NSString *_Nullable' with an rvalue of type ''UITouchPhase"


上starckoverflow看了一下,原来是在引用枚举值的时候前面需要做一个转换。


http://stackoverflow.com/questions/8502555/cannot-initialize-a-parameter-of-type-uiremote-notificationtype-with-an-rvalue-o点击打开链接


你可能感兴趣的:(Cannot initialize a parameter of type 'NSString *_Nullable' with an rvalue of type ''UITouchPhase")