Archive for December, 2011

Setting Up A Navigation-based Application Programmatically

Problem: To avoid using singleton models in your iPhone/iPad apps, it’s necessary to create the root view programmatically. This way you’re able to inject the model at creation time instead of in the viewDidLoad method. Solution: Here’s how to set up a navigation-based application in code in XCode 4.2 (with automatic memory management enabled). In […]