• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iOS: multiple view controllers, one nib?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iOS: multiple view controllers, one nib?


  • Subject: iOS: multiple view controllers, one nib?
  • From: Nathan Sims <email@hidden>
  • Date: Wed, 18 May 2011 11:53:42 -0700

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@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: iOS: multiple view controllers, one nib?
      • From: Shawn Erickson <email@hidden>
    • Re: iOS: multiple view controllers, one nib?
      • From: Luke the Hiesterman <email@hidden>
  • Prev by Date: Re: XML Resource Release
  • Next by Date: Re: iOS: multiple view controllers, one nib?
  • Previous by thread: Re: XML Resource Release
  • Next by thread: Re: iOS: multiple view controllers, one nib?
  • Index(es):
    • Date
    • Thread