2

I normally create apps for the iPad, but I decided to make one for the iPhone. When creating the project, I told XCode that this was targeted at the iPhone. After creating the project, the target/devices/everything says that it is being built for the iPhone. However, in the storyboard, every view controller defaults to iPad size/dimensions. How do I tell the project to default to iPhone size?

Also how do I change the storyboard files already created to the correct dimensions (without hard coding)?

Dustin
  • 6,783
  • 4
  • 36
  • 53

1 Answers1

1

To answer your first question, when you create a new storyboard file (File -> New -> File... -> User Interface -> Storyboard), Xcode prompts you to select a device family for the storyboard. Just select iPhone instead of iPad.

Changing an existing storyboard is trickier, but this question should provide you with a solution to do that if just making a new file will take too long.

Community
  • 1
  • 1
dmur
  • 530
  • 3
  • 14