Do I have to allocate view when I make app without IB?
<p>I want to make window based app without using IB.
I created MyViewController by allocating it.
Do I have to create view inside MyViewController also?
Without allocating it, app crashes.
For UITableViewController, UINavigationController,... I don't have to allocate view.
What is difference?</p>

<pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    viewController = [[MyViewController alloc]init];
    viewController.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480)];
    [self.window addSubview:viewController.view]; // app crashes here without allocating view explicitly
}   
</code></pre>
