【IOS】Pattern colors are not supported

970阅读 0评论2011-06-14 juexun
分类:嵌入式

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+;

上一篇:【IOS】retain copy asign 用法与区别
下一篇:【IOS】关于IOS应用图标和启动图片的设置