cocos2d:将 iPhone 应用程序转换为通用应用程序 [英] cocos2d:Convert iPhone App to Universal App

查看:22
本文介绍了cocos2d:将 iPhone 应用程序转换为通用应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 cocos2d box2d 项目模板在 cocos2d 99.4 中开发了一个 App 应用程序.它在 iPhone 4、iPod 中运行良好......但我需要它转换为通用......我的意思也是 iPad 版本......我已经将它升级到 iPad 版本......所以它可以在 iPad 上运行......但体积很小像 iPhone...

谁能帮忙??

谢谢

解决方案

要将您的项目转换为通用应用程序,请参阅 iPad 编程指南:p><块引用>

配置您的 Xcode 项目

创造通用的第一步应用程序是配置你的 Xcode项目.如果您正在创建一个新的项目,您可以创建一个通用的使用基于窗口的应用程序应用程序模板.如果你是更新现有项目,您可以使用 Xcode 的升级当前目标用于更新项目的 iPad 命令:

  1. 打开您的 Xcode 项目.
  2. 在目标"部分中,选择要更新为通用应用.
  3. 选择 Project > Upgrade Current Target for iPad 并按照提示操作创建一个通用应用程序.

Xcode 通过以下方式更新您的项目修改几个构建设置支持 iPhone 和 iPad.

重要提示:您应该始终使用 Upgrade Current Target for iPad 命令来迁移现有项目.不要尝试手动迁移文件.

I have developed an App app in cocos2d 99.4 using cocos2d box2d project template.It works well in iPhone 4,iPod.....but i need it to convert to universal...i mean iPad version also ......i already upgraded it to iPad version....so that it runs in iPad...but in small size like iPhone...

can any one help??

Thanks

解决方案

To convert your project to a universal app, see "Creating a Universal Application" in the 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.

这篇关于cocos2d:将 iPhone 应用程序转换为通用应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆