Brett Ryan
Brett Ryan

Reputation: 28295

How do I specify the default minimum iOS version for new projects?

I'm learning iOS development from 5.0 SDK books as I don't believe any are out for 6.0, I will repurchase these when they do come out though because they are good books.

One thing I'm finding though is that a lot of the basic methods used are now deprecated in 6.0, i.e. UIViewController shouldAutorotateToInterfaceOrientation and UIViewController viewWillUnload, the latter being a little more important if I target < 6.0.

So how do I get Xcode to use 5.0 templates instead of 6.0?

Upvotes: 0

Views: 106

Answers (1)

matt
matt

Reputation: 535860

Is your question really about the templates? If it is, you'll have to use a version of Xcode that still develops for iOS 5 SDK. Xcode 4.2 will do this. Earlier versions of Xcode are here:

https://developer.apple.com/downloads/index.action?name=Xcode

If your question is "how can I use Xcode 4.5.x to develop for iOS 5", just set the Deployment Target for the project to 5.0. If you need to test in the simulator, Xcode can download an iOS 5 simulator for you.

However, it's hard to tell what you're really asking, so here are some further miscellaneous comments:

  • There's no such thing in iOS as BIDViewController. You must be talking about some UIViewController subclass from some particular example.

  • About shouldAutorotate. It is not "deprecated" in iOS 6; it isn't called at all! You specify rotation in a completely different way in iOS 6 from how you specify it in previous systems.

  • About viewWillUnload. It is not "deprecated" in iOS 6; it isn't called at all! In fact, your view is never unloaded. This may also be true for iOS 5, only we weren't told; but that's just a guess, based on something I thought I remembered from a WWDC 2012 video.

Upvotes: 1

Related Questions