views:

37

answers:

1

What exactly is the point of adding a UIViewController in IB? There is no way to add code like you can if you create a viewController in Xcode? And if you can what is the advantage of doing it in IB.

And isn't the whole point of a MVC to seperate code into "modular" parts so why would add a ViewController in IB

A: 

Sometimes all you need is a UIViewController. But most times you would create a UIViewController subclass of your own (in IB).

Paul Lynch
i thought a UIViewController was there to be subclassed, what is it's purpose otherwise
Jonathan
Presenting transitions, etc. You can push a view onto a navigation controller, or present it from a tab bar without a view controller there.
Paul Lynch