Design for iPad and iPhone

1

Well, I have a problem, I'm with a project where I have a Storyboard file for iPhone and another Storyboard for iPad. So I have a UIImageView on the Storyboard for iPhone, and another UIImageView on the iPad Storyboard.

But I have IBOutlet already connected and receiving images and displaying the images in the simulator using iPhone. But I have not yet connected the UIImageView of the iPad because I'm in doubt, if has to connect to the same IBOutlet of the iPhone , or would have to create another ViewController so for the iPad.

Could someone help me?

    
asked by anonymous 16.09.2014 / 15:36

1 answer

3

No, you do not need to create another ViewController for iPad; you can use the same for both. IBOutlet can receive two calls, one for iPhone and one for iPad. However, make sure that the View you have on your iPad is referenced by your ViewController (file owner)!

    
17.09.2014 / 17:06