Property 'edgesForExtendedlayout' not found on object of type 解决方案

来源:互联网 发布:mysql 树形结构查询 编辑:程序博客网 时间:2024/06/05 03:38

用Xcode4,iOS7以前的SDK编辑使用了iOS7新特性的工程,如果用到了edgesForExtendedLayout属性,会报错Property 'edgesForExtendedlayout' not found on object of type,此时解决方案有二:

一:升级Xocde到5,Base SDK使用默认的iOS7 SDK。

二:写一个宏判断使用(没试过)。http://beyondvincent.com/blog/2013/11/19/122-working-with-ios-6-and-7/


用Xcode5,iOS7 SDK遇到了上述的问题。。。。一般来说是不可能遇到的,如果真的悲催地遇到了,请把SDK库里的除iOS7 SDK以外的SDK全部删除,路径是

/Applications/Xcode.app/Contents/Developer

/Platforms/iPhoneOS.platform/Developer/SDKs


It works!

原创粉丝点击