免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 848 | 回复: 0
打印 上一主题 下一主题

【IOS】Pattern colors are not supported [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-21 08:41 |只看该作者 |倒序浏览

Last day i opened and compiled an old project of iPhone; I’m using Xcode 3.2.5 with iOS 4.2 on Mac OS X 10.6.6; When i complied that project I got the following error in multiple xib files

Pattern colors are not supported by the iPhone SDK for iOS versions prior to 3.0.

Reason of Error;
The project was built and compiled with iOS 3.0, and will work fine on sdk 3.2 and 2.2.1 but on sdk 4.0 it will throw that error;
The deployment target for xib files was set to iOS 2.1.1 when you use ios3.0 or prior;

Solutions;
While working on iOS 4.0+ you must need to change the the Deployment Target in xib file to 3.0;

How to do ;
Open the .xib file in Interface Builder, then select Window > Document Inf, select a later version of Deployment Target OS version. see the Image below;

Here the Deployment Target is set to iOS 2.1 and hence producing error; Change it to iOS 3.0 when you are working on iOS 4.0+;

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP