mgamer
mgamer

Reputation: 14050

Use the same XIB for iPad and iPhone

I'm building a simple app in Cocoa Touch that is to work on iPad and iPhone.

What are the techniques for creating XIB files that would work and look the same on these two devices? Can I use the same XIB for iPad and iPhone?

Upvotes: 1

Views: 605

Answers (2)

BoltClock
BoltClock

Reputation: 723598

If you want your app to "work and look the same on these two devices", just create an iPhone version and deploy only to the iPhone. The iPhone app will run on an iPad as is, and an iPad user will have the option to pixel-double it if the iPhone resolution is too small.

Upvotes: 2

Simon
Simon

Reputation: 9021

I'd suggest using storyboarding if possible. It does make support for multiple devices much easier than it used to be. Is there a reason you don't want to use storyboarding or have you not looked at it yet?

Upvotes: 1

Related Questions