- 浏览: 236443 次
- 性别:
- 来自: 天津
文章分类
最新评论
-
yulanlian:
...
实现在删除数据后,自增列的值连续 -
RonQi:
楼主写的很好,支持原创!
Google Protocol Buffers
好,现在处理iphone上面的高清和普清显示非常简单了(准备两套图片),但是,iPad呢?该怎么做呢? 呃,要想编写一个游戏,让它同时能够在iphone和ipad上面运行似乎是一件非常烦人的事--因为设备的纵横比(aspect ratio)不一样! iphone支持480*320或者960*640---因此是1.5的纵横比。然后,iPad是768*1024的--纵横比等于1.33. 这意味着,如果你有一张图片,能够完全覆盖iPad的背景(768*1024),如果你也想在iPhone里面继续使用它。那恐怕不会匹配那么好。比如,你把它缩小,让宽度等于iphone的宽度(通过乘以0.9375):你会得到720*960,因此,还是会有一部分图像不能显示! 这让事情变得有点恼火了,因为,不只是背景图片的问题,因为纵横比的不同,原先设置节点使用的坐标就不能够再使用了。 目前有一些方法可以解决这个问题,下面列举了一些我看过的、听过的和使用过的(如果你们有更好的方法,可以留言): 另一个原因,cocos2d目前对iPad的支持并不是很友好。只是可以自动加载后缀为“-hd”的图片,转换坐标的工作还是得由你来做。 截取自:http://www.cnblogs.com/andyque/archive/2011/05/15/2045784.html
发表评论
-
ios 国际化相关
2011-10-08 18:49 1413添加国际化 1. 代码中使用字符串的地方 使用 NS ... -
iPhone开发笔记
2011-09-26 21:52 1063退回输入键盘: - (BOOL) textFie ... -
ios开发基础知识 - 1
2011-09-26 21:51 1087输出 command+shift+r NSLog(@& ... -
ios---超链接的UILabel教程
2011-09-26 21:50 1491超链接的UILabel教程 -
ios开发基础问题总结
2011-09-26 21:49 1246订阅 1,如何进入应用后首 ... -
UILabel用法
2011-09-26 20:45 1779/设置换行 UILabel*label; / ... -
IPhone之UIScrollView [转载]
2011-09-22 15:55 859原文地址:IPhone之UIScrollView作者:飞 ... -
手势识别
2011-09-03 17:19 860注册: UISwipeGestureReco ... -
“碰撞”探测
2011-08-21 14:28 807首先要向大家说明的是,所谓“碰撞”探测没有大家想想 ... -
coco2d地图显示相关类
2011-08-21 07:55 1550摘自:知易教程 Cocos2d-iPhone 实现地图 ... -
Cocos2D 的事件处理机制
2011-08-21 07:21 1561摘自:知易教程 系统当前场景对象包含多个层 ... -
cocos2d游戏开发,常用工具集合
2011-08-20 19:40 797位图字体工具Bitmap Font ToolsBMFon ... -
iPhone OS 的 Touche 事件
2011-08-20 19:34 1304知易教程 基础知识 在开始介绍 iPhone OS ... -
Retina Display and Cocos2D
2011-08-05 11:57 1295最新版本的cocos2d完全 ... -
网络编程总结
2011-08-04 15:41 796一:确认网络环境3G/WIFI 1. 添加源文件和fra ... -
Cocos2D界面切换方式
2011-08-04 15:37 1600CCTransitionFade, //渐隐 ... -
Protocol协议的用法
2011-08-04 15:30 1218一、说明 两个类进行通讯,用协议就比较方便。 (书 ... -
IOS开源项目和官方例子汇总
2011-08-04 14:22 1811开源项目: 扫描wifi信息:http://code. ... -
cocos2d场景和UIViewController视图的切换
2011-08-04 14:20 1581cocos2d中从场景切换到UIViewController视 ... -
视差滚动
2011-08-02 21:09 1096我们已经有一个很酷的飞船在屏幕上了,但是,它看起来就好 ...
相关推荐
A Learner’s Guide to Creating Objective-C Applications for the iPhone and iPad Book Description : Let’s say you have a killer app idea for iPhone and iPad. Where do you begin? Head First iPhone and...
iOS 10 SDK Development: Creating iPhone and iPad Apps with Swift by Chris Adamson English | 24 Mar. 2017 | ASIN: B071RRCK9R | 264 Pages | AZW3 | 5.24 MB All in on Swift! iOS 10 and Xcode 8 make it ...
This book is intended for IT staff members that will be charged with planning an iPhone and ipad implementation or pilot program, as well as those that will be charged with ultimately deploying and ...
Building iPhone and iPad Electronic Projects。关于iOS外围传感器编程
Head First iPhone and iPad Development, 2nd Edition.pdf
Learn iPhone and iPad cocos2d Game Development中文版全集
Developing iOS 7 Apps for iPhone and iPad ppt (1-10) 最新 xcode 5的 斯坦福 ios 公开课 ppt
the iPhone and iPad are “...some of the coolest, most powerful, and most technologically advanced tools ever made—period!” He is fascinated by the fact that, just under the appealing touch screen ...
Let's say you have a killer app idea for iPhone and iPad. Where do you begin? Head First iPhone and iPad Development will help you get your first application up and running in no time. You'll not only...
《Learn iPhone and iPad Cocos2D Game Development》翻译的章节。 来至cocoaChina论坛会员提供 个人觉得是一本不错的教程
The phenomenal success of the iPhone, iPad and the iPod touch has ushered in a “gold rush” for developers, but with well over 300,000 apps in the highly competitive App Store, it has become ...
支持ipad iphone 完美越狱
iPhone and iPad in Action
It cuts through the fog of jargon and misinformation that surrounds iPhone and iPad app development, and gives you simple, step-by-step instructions to get you started. ☆ 出版信息:☆ [作者信息] ...
iPhoneFolder ipad iphone连接电脑查看文件
Beginning iPhone and iPad Web Apps
本书旨在以教程的形式讲解如何使用本地iPhone SDK 进行iPhone/iPad 开发。首先介绍了Objective-C、Xcode、Interface Builder、视图控制器、标准事件和动作模型等基础知识,接着介绍了一些数据访问方法与出色的硬件...