JMD
JMD

Reputation: 1590

How to make my iphone app work on an iPad?

It is my understanding (i have seen it) that some apps can be opened and viewed in an iPad. Although, the iPad keeps the screen small, or pixelated if doubled the screen size.

I am attempting to do the same thing with my app, however when I attempt to run it on an iPad it crashes with the error

'Could not find a storyboard named 'MainStoryboard_iPad'

This is obvious, as I do no have a storyboard for the iPad, but currently I don't want one. I just want the iPad to run the app as an iPhone app in a smaller version. So my question is, how do I stop it from looking for the iPad storyboard? Its my understanding I must adjust something in the plist.info but I don't know how to access that in xcode. its my understanding you select the project in the navigator then select 'info' but I don't see any information that people say should be in the plist.info.

Thanks

Upvotes: 0

Views: 1291

Answers (3)

JMD
JMD

Reputation: 1590

Ok, I found the final issue. After editing the summary to 'iPhone' I also had to go into the Info tab and change the line that says

'Main storyboard file base name (iPad) to MainStoryboard_iPhone. It was currently set to MainStoryboard_iPad. That second step fixed the issue.

Thanks guys!

Upvotes: 0

NJones
NJones

Reputation: 27147

You seem to have made your application universal. You want to set your "devices" to iPhone. This can be done on the target summary page (No need to interact with your .plist directly).

enter image description here

Upvotes: 1

WrightsCS
WrightsCS

Reputation: 50697

Only target iPhone platform, and do not call any iPad interface objects in your code. You should look in your Main xib file to make sure there are no references to an iPad interface object.

iPhone only apps should natively run in double-pixel mode. In order to resolve the pixelated / grainy issue you see, use @2x (for iPhone) size images. This will reduce the pixelation you see, but will still contain some.

Upvotes: 0

Related Questions