Search code examples
iphoneinterface-builderiboutlet

Link IBOutlet to both iPhone and iPad Storyboards


I am writing a universal application. As far as I can tell, it's not possible to use Interface Builder to link an IBOutlet, which is already linked to the iPhone storyboard, to the iPad storyboard?

What are possible workarounds for this? Should I just edit the storyboard via text editor?

It doesn't really seem sensible to have an IBOutlet for each device if it's the exact same element behaving in the exact same fashion.

Cheers-


Solution

  • You should be perfectly capable and able to add IBOutlet's to both an iPhone_Storyboard file and likewise the same IBOutlet's on an iPad_Storyboard file. What does it appear to be doing, simply detaching your previous connection in the other Storyboard file?

    I've done this on multiple universal applications without an issue.