Re: Cocoa-dev Digest, Vol 10, Issue 612
Re: Cocoa-dev Digest, Vol 10, Issue 612
- Subject: Re: Cocoa-dev Digest, Vol 10, Issue 612
- From: Rick Aurbach <email@hidden>
- Date: Tue, 24 Sep 2013 11:30:06 -0400
- Acceptlanguage: en-US
- Thread-topic: Cocoa-dev Digest, Vol 10, Issue 612
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, email@hidden wrote:
> Message: 7
> Date: Tue, 24 Sep 2013 10:45:27 +0100
> From: Dave <email@hidden>
> To: "email@hidden Users" <email@hidden>
> Subject: Multiple Storyboard Files
> Message-ID: <email@hidden>
> 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 (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