Inferis/ViewDeck — Issue #44: CenterController ViewDidLoad called twice.
Author: sgabello
Created: 2012-02-28 13:00:21+00:00
State: open

Hi there,

First thing first: my compliments: very good job indeed!

I found a bug (or at least I think is not the expected behaviour.

When I start the app, the ViewDidLoad method of the centerViewController gets called twice.

Here's how I setup the ViewControllers in the App Delegate:

```objective-c
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
UIViewController *centerViewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil];
UIViewController *sideViewController = [[ViewController alloc] initWithNibName:@"SideViewController" bundle:nil];
IIViewDeckController *deckController = [[IIViewDeckController alloc] initWithCenterViewController:centerViewController rightViewController:sideViewController];

self.window.rootViewController = deckController;
[self.window makeKeyAndVisible];
return YES;
```