Best way to change between views in iOS

Namratha picture Namratha · Mar 2, 2011 · Viewed 19.4k times · Source

How do you go from one view to another? Is

[window addSubview:myView];

The only option or is there a better way to do this?

Answer

petert picture petert · Mar 2, 2011

First look at Apple's View Controller Programming Guide for iOS. You might start with a navigation-based interface it sounds. What you say is strictly true, but you want to take advantage of features like animation, which come for 'free' if you use Apple's view controller classes.