当前位置 : 主页 > 手机开发 > 其它 >

cocos2d:将iPhone App转换为Universal App

来源:互联网 收集:自由互联 发布时间:2021-06-13
我使用cocos2d box2d项目模板在cocos2d 99.4中开发了一个App应用程序.它在iPhone 4,iPod中运行良好…..但我需要它转换为通用…我的意思是iPad版本也 ……我已经将它升级到iPad版….所以它在iPa
我使用cocos2d box2d项目模板在cocos2d 99.4中开发了一个App应用程序.它在iPhone 4,iPod中运行良好…..但我需要它转换为通用…我的意思是iPad版本也
……我已经将它升级到iPad版….所以它在iPad上运行……但是体积小
喜欢iPhone ……

任何人都可以帮忙吗?

谢谢

要将项目转换为通用应用程序,请参阅 iPad Programming Guide中的“创建通用应用程序”:

Configuring Your Xcode Project

The
first step to creating a universal
application is to configure your Xcode
project. If you are creating a new
project, you can create a universal
application using the Window-based
application template. If you are
updating an existing project, you can
use Xcode’s Upgrade Current Target for
iPad command to update your project:

  1. Open your Xcode project.
  2. In the Targets section, select the target you want to update to a
    universal application.
  3. Select Project > Upgrade Current Target for iPad and follow the prompts
    to create one universal application.

Xcode updates your project by
modifying several build settings to
support both iPhone and iPad.

Important: You should always use the Upgrade Current Target for iPad command to migrate existing projects. Do not try to migrate files manually.

网友评论