iOS-Cocos2d使用Zwoptex生成plist文件

摘要: 转自http://blog.csdn.net/tt5267621/article/details/75989711.精灵表的分类:简单精灵表:精灵表中的图片都具有相同维度复杂精灵表:精灵表中的图片可以具有不同的维度。2.简单精灵表通过SpriteSheet类将提供的图像切割成大小相同的子图像,当一个新的精灵表被实例化时将提供切割时用到的维度,同时也将提供精灵表图像中已用的“间隔”信息。3.复杂精灵表通过PackedSpriteSheet类来解析,该类需要一个图像和控制文件的名称。通过解析该控制文件就能获得精灵表中的精灵的位置和大小。有无控制文件是基本型精灵表和复杂型精灵表间的主要区别。基本的精 阅读全文
posted @ 2012-11-19 23:08 一梦浮生2012 阅读(451) 评论(0) 推荐(0)

iOS: Device token and registerForRemoteNotificationTypes, didReceiveRemoteNotification

摘要: 分类:MobileiOS2012-04-18 19:25244人阅读评论(0)收藏举报Device token for an iPhone device生成之后就永远不变吗?不是,if a device is wiped (应该是重装系统), it will get a new device token.官方网站是这样写的:If the user restores backup data to a new device or computer, or reinstalls the operating system, the device token changes正是因为device有可能改变 阅读全文
posted @ 2012-11-19 23:02 一梦浮生2012 阅读(672) 评论(0) 推荐(0)