The IB concerns aside, attempting to build your own "more than one view controller on the screen" solution is currently fraught with peril, and something you'll probably get wrong. The window expects to have a single rootViewController to handle rotations and such. You're probably better off having a single view controller and each of your quad views should just be regular UIViews managed by the one view controller. And, if you did that, all your views would naturally be built in the one nib that defines your view controller :)
Luke On May 18, 2011, at 11:53 AM, Nathan Sims wrote: > I'm writing an iPad app that has its main screen subdivided into 4 equal > regions, each with a UIView, all defined in one IB nib. I have a dedicated > view controller class for each view. When I instantiate the view controller > class for each quadrant's view with -initWithNibName:bundle:, I have to > specify the same nib name for each: > > quad1VC = [[Quad1ViewController alloc] initWithNibName:@"QuadViewiPad" > bundle:nil]; > quad2VC = [[Quad2ViewController alloc] initWithNibName:@"QuadViewiPad" > bundle:nil]; > quad3VC = [[Quad3ViewController alloc] initWithNibName:@"QuadViewiPad" > bundle:nil]; > quad4VC = [[Quad4ViewController alloc] initWithNibName:@"QuadViewiPad" > bundle:nil]; > > Will this properly connect each quadrant's view with the corresponding view > controller, or should I have just one view controller for all 4 views? > > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
