Storyboard view without segue?

Discussion in 'iOS Programming' started by nathanlloyd, May 4, 2012.

  1. nathanlloyd macrumors member

    Joined:
    Dec 7, 2009
    Location:
    UK
    #1
    Hi guys,

    I've created an app using storyboard with segues linking everything together and it works great.

    I now need to make changes to add a new view to the storyboard that can be accessed from many other views. Ideally I don't want loads of segues linking to it but would rather do the linking programatically.
    My question is can I have an unlinked view in my storyboard or will Xcode moan at me that I've got unlinked views?

    (Also is programatically doing it the right way of doing it?)
     
  2. lucasgladding macrumors 6502

    Joined:
    Feb 16, 2007
    Location:
    Waterloo, Ontario
    #2
    If you're not using segues, I would just use a separate NIB. You can then load the view controller and NIB the way you would have done it in the past. IMHO, that's the best approach. I haven't run into any problems doing it that way for my apps.
     

Share This Page