Dave,

In my app, I use 10 storyboards; I find it much easier to group things together 
into a storyboard of reasonable size containing logically-grouped elements, 
rather than trying to put everything into one mammoth storyboard.

Anyway, there are a few things I try to keep in mind when doing this (although 
I'm sure other readers could add to the list):

(1) Create all of the storyboards within you localized directory structure. You 
want to be able to localize all of them, not just MainStoryboard.
(2) IB-defined segues only work between objects in the same storyboard. If you 
want to segue from an object (a view controller or a button or whatever) in one 
storyboard to a object on another, you must do so programmatically. (On the 
other hand, this isn't all that hard to do.)
(3) If you're really going to build OS-dependent COMPLETE sets of storyboards, 
you need to think carefully about application launch. (Since I can't think of 
any easy way to get OS-dependence into the appropriate info.plist entry…) What 
you might do is to create an initial view controller that was OS-independent 
and then manually embed your OS-dependent controllers into it…

HTH.

On Sep 24, 2013, at 6:59 AM, cocoa-dev-requ...@lists.apple.com wrote:

> Message: 7
> Date: Tue, 24 Sep 2013 10:45:27 +0100
> From: Dave <d...@looktowindward.com>
> To: "cocoa-dev@lists.apple.com Users" <Cocoa-dev@lists.apple.com>
> Subject: Multiple Storyboard Files
> Message-ID: <bb3106df-36fa-4985-95d9-bfd946158...@looktowindward.com>
> Content-Type: text/plain; charset=us-ascii
> 
> Hi,
> 
> What is the best way to handle having more than one Storyboard in an 
> application?
> 
> It looks like I will need two files now, one for iOS < 7 and one for iOS >= 
> 7. The current file is stored in:
> 
> en.lproj                                // Folder
>        MainStoryboard_iPhone. storyboard
>        InfoPlist.strings
> 
> Do I duplicate the whole folder "en.lproj" or just the 
> "MainStoryboard_iPhone. storyboard" file in the folder?
> 
> I can't seem to find an example project that has > 1 Storyboard File.
> 
> All the Best
> Dave

Cheers,

Rick Aurbach
Aurbach & Associates, Inc.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to