Creating a new Xcode 4 project targeted to iPad only
I'm attempting to create a new iPad project for an app I'm working on, prior to version 4 of Xcode you could select in the new project assistant what device family you are targeting. In Xcode this appears to have been removed and all I can create is an iPhone project. I can go to the project info and cha开发者_如何学编程nge the device to iPad, and Xcode converts it, but how do I just create an iPad project ?
It depends on your application template. Some (Tab Bar, Navigation) are tied to iPhone devices only, some such as Split View are tied to iPad devices only, while the "Window based" template allows you to pick iPhone, iPad, Universal.
Select the type under new project, and press next. Under device family you choose iPad.
You can set this in the target. Look at the screenshot:
The Devices dropdown allows you to select
- iPhone
- iPad
- Universal
精彩评论