上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
摘要: Resizing the View Controller’s ViewsA view controller owns its own view and manages the view’s contents. In the process, the view controller also manages the view’s subviews. But in most cases, the view’s frame is not set directly by the view controller. Instead, the view’s frame is determined by ho 阅读全文
posted @ 2014-03-21 12:30 cainiaozhang 阅读(705) 评论(0) 推荐(0) 编辑
摘要: Creating Custom Layouts创建自定义布局Before you start building custom layouts, consider whether doing so is really necessary. TheUICollectionViewFlowLayoutclass provides a significant amount of behavior that has already been optimized for efficiency and that can be adapted in several ways to achieve many d 阅读全文
posted @ 2014-03-20 13:59 cainiaozhang 阅读(1092) 评论(2) 推荐(0) 编辑
摘要: Gesture Recognizers手势识别器Gesture recognizers convert low-level event handling code into higher-level actions. They are objects that you attach to a view, which allows the view to respond to actions the way a control does. Gesture recognizers interpret touches to determine whether they correspond to a 阅读全文
posted @ 2014-03-10 15:35 cainiaozhang 阅读(1290) 评论(0) 推荐(0) 编辑
摘要: Responding to Display-Related Notifications响应跟显示相关的通知When the visibility of a view controller’s view changes, the view controller calls some built-in methods to notify subclasses of the changes. You can override these methods to override how your subclass reacts to the change. For example, you can u 阅读全文
posted @ 2014-02-20 12:19 cainiaozhang 阅读(476) 评论(0) 推荐(0) 编辑
摘要: Incorporating Gesture Support结合手势支持You can add greater interactivity to your collection views through the use of gesture recognizers. Like any view, you can add a gesture recognizer to a collection view and use it to trigger actions when those gestures occur. For a collection view, there are two typ 阅读全文
posted @ 2014-02-18 12:46 cainiaozhang 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 返回 Mac App StorePrepare for Mac App Store Submission提交到Mac 应用商店之前的准备Most of your time is spent on coding tasks, but to develop for the Mac App Store, you need to perform a number of administrative tasks, using Xcode and other tools. You’ll do this throughout the lifetime of your app. The Mac App St. 阅读全文
posted @ 2014-02-16 10:43 cainiaozhang 阅读(983) 评论(0) 推荐(0) 编辑
摘要: 1、CCTouch* touch->getLocation() ---- 返回当前触摸点在openGL坐标系中的位置 openGL坐标系,原点在左下角,x向右为正,y向上为正。2、CCTouch* touch->getLocationInView() ---- 返回当前触摸点在屏幕坐标系中的位置 视图坐标系,原点在左上角,x向右为正,y向下为正。 经测试以上两个结果值,x一样,y值不一样。3、CCDirector->sharedDirector()->convertToGL(CCPoint* point)------把poit从一个UIKit 框架坐标系转换到OpenG 阅读全文
posted @ 2014-02-13 09:42 cainiaozhang 阅读(385) 评论(0) 推荐(0) 编辑
摘要: Resource Management in View ControllersView controllers are an essential part of managing your app’s resources. View controllers allow you to break your app up into multiple parts and instantiate only the parts that are needed. But more than that, a view controller itself manages different resources 阅读全文
posted @ 2014-02-12 14:09 cainiaozhang 阅读(482) 评论(0) 推荐(0) 编辑
摘要: About Events in iOSUsers manipulate their iOS devices in a number of ways, such as touching the screen or shaking the device. iOS interprets when and how a user is manipulating the hardware and passes this information to your app. The more your app responds to actions in natural and intuitive ways, 阅读全文
posted @ 2014-02-09 12:50 cainiaozhang 阅读(1129) 评论(0) 推荐(0) 编辑
摘要: 每次升级cocos2dx版本都觉得不知道怎么弄才行。这次升级到v2.2.2版本又花了我不少时间。因此在这里分享一下,以后也有地方可以查询。1. 到http://cocos2d-x.org/ 下载最新的cocos2dx版本2. 解压缩到你认为ok的目录3. 打开终端cd 到cocos2dx文件夹的根目录(cd ~/dev/cocos2d-x-2.2.2)4. cd tools/project-creator5. 键入./create_project.py -project -package -language 6. 创建项目成功!!! cd~/dev/cocos2d-x-2.2.2 找到pro. 阅读全文
posted @ 2014-02-08 12:30 cainiaozhang 阅读(464) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页