I want to support both users running iOS5 and iOS6. But for instance UIViewController
's method -viewDidUnload
is deprecated in iOS6. So how would I use it for users running iOS5, but not for users running iOS6?
You can continue having this method in your code, it will just not be called. If you really wish to have it called, you can invoke it in didReceiveMemoryWarning
. In fact, move the code there for old iOS as well.
Other changes that might interest you are related to rotation. You can implement both the new iOS6 methods as well as keep the old ones, and they will not interfere with each other.