cannot initialize a parameter of type 'IPCameraNightMode' with an rvalue of type 'int'
2016-12-17 18:09
986 查看
在.mm文件中设置一个枚举变量时,XCode 报了下面错误:
Cannot initialize a parameter of type 'IPCameraNightMode' with an rvalue of type ''int"
上starckoverflow看了一下,原来是在引用枚举值的时候前面需要做一个类型强行转换。
[self setNModeBtns:nightModeInter_old];-》
[self
setNModeBtns:(IPCameraNightMode)nightModeInter_old];
http://stackoverflow.com/questions/8502555/cannot-initialize-a-parameter-of-type-uiremote-notificationtype-with-an-rvalue-o href="http://stackoverflow.com/questions/8502555/cannot-initialize-a-parameter-of-type-uiremote-notificationtype-with-an-rvalue-o" target=_blank>点击打开链接
Cannot initialize a parameter of type 'IPCameraNightMode' with an rvalue of type ''int"
上starckoverflow看了一下,原来是在引用枚举值的时候前面需要做一个类型强行转换。
[self setNModeBtns:nightModeInter_old];-》
[self
setNModeBtns:(IPCameraNightMode)nightModeInter_old];
http://stackoverflow.com/questions/8502555/cannot-initialize-a-parameter-of-type-uiremote-notificationtype-with-an-rvalue-o href="http://stackoverflow.com/questions/8502555/cannot-initialize-a-parameter-of-type-uiremote-notificationtype-with-an-rvalue-o" target=_blank>点击打开链接
相关文章推荐
- Cannot initialize a parameter of type 'NSString *_Nullable' with an rvalue of type ''UITouchPhase"
- keil(MDK)中出现error: #513: a value of type "int" cannot be assigned to an entity of type "char *",即函数返
- 类似Build Error: #513: a value of type "int" cannot be assigned to an entity of type "char *"
- Cannot initialize a parameter of type 'char **' with
- keil(MDK)中出现error: #513: a value of type "int" cannot be assigned to an entity of type "char *",即函数返回值无法赋值给对应变量的错误
- caffe: fuck compile error again : error: a value of type "const float *" cannot be used to initialize an entity of type "float *"
- A project with an Output Type of Class Library cannot be started directly
- How to solve the problem "A project with an Output Type of Class Library cannot be started directly "
- A project with an Output Type of Class Library cannot be started directly
- A project with an Output Type of Class Library cannot be started directly
- The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List
- [WARNING ] Key 'file_ignore_glob' with value None has an invalid type of NoneType
- The value of attribute "description" associated with an element type "target" must not contain the '<' character.
- C++之invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘int’
- A project with an Output Type of Class Library cannot be started directly
- A project with an Output Type of Class Library cannot be started directly
- A project with an Output Type of Class Library cannot be started directly
- 问题解决:javax.servlet.jsp.el.ELException: The "." operator was supplied with an index value of type "java.lang.String" to be applie
- Err:The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array
- Dapper:The member of type SeoTKD cannot be used as a parameter Value