Xcode编译错误:Synthesized property 'xxxXXX' must either be named the same as a compatible ivar or mus
2011-09-07 14:05
751 查看
在 32-bit 时,如果类的 @interface 部分没有进行 ivar 声明,但有 @property 声明,在类的 @implementation 部分有响应的 @synthesize,
则会得到类似下面的编译错误: Synthesized property 'xX' must either be named the same as a compatible ivar or must explicitly name an ivar
在 64-bit时,运行时系统会自动给类添加 ivar,添加的 ivar 以一个下划线"_"做前缀。
上面声明部分的 @synthesize window=_window; 意思是说,window 属性为 _window 实例变量合成访问器方法。
则会得到类似下面的编译错误: Synthesized property 'xX' must either be named the same as a compatible ivar or must explicitly name an ivar
在 64-bit时,运行时系统会自动给类添加 ivar,添加的 ivar 以一个下划线"_"做前缀。
上面声明部分的 @synthesize window=_window; 意思是说,window 属性为 _window 实例变量合成访问器方法。
相关文章推荐
- Xcode编译错误:Synthesized property 'xxxXXX' must either be named the same as a compatible ivar or mus
- Synthesized property 'xx' must either be named the same as a compatible ivar or must explicitly name
- 异常:Error: Aesthetics must either be length one, or the same length as the dataProblems:AData
- iOS 当运行Xcode6时,编译代码成功,但是登陆模拟器失败,显示错误:The Operation couldn't be completed.(LaunchServicesError error
- XCode中互相包含引起的"property with 'retain(or strong)' attribute must be of object type"错误与解决
- The AnimationClip 'Take001' used by the Animation component 'Yu' must be marked as Legacy.
- Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案
- Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案仅为个人学习使
- Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案
- 解决[Résolu] Check_icmp: This plugin must be either run as root or setuid
- 出现错误 Element type "LinearLayout" must be followed by either attribute specification,">"or"/>"的解决办法
- The requested list key 'map' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or peopl
- Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案
- iOS编译错误:Property cannot have array or function type 'Block' (aka 'void (XXXXView *__st
- 错误:A field or property with the name 'XXX' was not found on the selected data source 解决
- Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案
- Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案
- 错误整理:jfreechart报错org.apache.jasper.JasperException: The 'quality' must be in the range 0.0f to 1.0f
- Visual Studio 2012 编译错误【error C4996: 'scanf': This function or variable may be unsafe. 】的解决方案