开发者

iphone sdk 3.2 to 4.0 nib editing

So I am working on an app that was compiled on sdk 3.2 and 2.2.1, but I have sdk 4.0. When I compile it, I get many build errors "Pattern colors not supported by the iphone SDK for iphone OS versions prior to 3.0" and "setText is depre开发者_运维知识库cated."

Furthermore, when I open a nib file and try to change the colors, add in an item from the library, or mess around with it my changes and additions don't show up during runtime. I am thinking this is an issue with the interface builder, particularly the different SDK versions.

Is this the case? I am programming for the ipad, so I need at least 3.2?


Open the .xib file in Interface Builder, then select Window > Document Info, select a later version of Deployment Target OS version.


Your errors of "setText is deprecated" is an error in your code because apple updated their framework. The easiest to fix that would be to check the framework for a comment that says what to use.

When you make a change to a nib file, interface builder and Xcode require that you save before building the project.

The iPad is only 3.2, so yes you will need to build it for iOS 3.2.


Sorry I am OP, had to create an account since I was using a temp one.

Thanks for the answer, however, I'm not too worried about setText is deprecated because it builds successfully.

Regarding the nib file, I did save, clean and rebuild the project. I'm working on someone else's code done in earilier sdk's, and when I delete their objects in IB the app will still run fine, as though the interface builder is not responding. I add objects in the nib and they won't show up. If I do this is projects I create, it goes through finely. My guess is it's the different sdks?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜