Fork me on GitHub

2012年2月6日

摘要: Unsafe_unretainedWe’re almost done covering the basics of ARC – I just wanted to mention one more thing you should know.Besides strong and weak there is another new modifier, unsafe_unretained. You typically don’t want to use that. The compiler will add no automated retains or releases for variables 阅读全文
posted @ 2012-02-06 13:01 pengyingh 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.raywenderlich.com/5773/beginning-arc-in-ios-5-tutorial-part-2Converting By HandWe’ve converted almost the entire project to ARC already, except for MainViewController and AFHTTPRequestOperation. In this section I’ll show you how to convert MainViewController by hand. Sometimes it’s f 阅读全文
posted @ 2012-02-06 12:59 pengyingh 阅读(764) 评论(0) 推荐(0) 编辑
摘要: 转载:http://blog.csdn.net/favormm/article/details/7023322iOS5中加入了新知识,就是ARC,其实我并不是很喜欢它,因为习惯了自己管理内存。但是学习还是很有必要的。在iOS开发过程中,属性的定义往往与retain, assign, copy有关,我想大家都很熟悉了,在此我也不介绍,网上有很多相关文章。现在我们看看iOS5中新的关键字strong, weak, unsafe_unretained. 可以与以前的关键字对应学习strong与retain类似,weak与unsafe_unretained功能差不多(有点区别,等下会介绍,这两个新关键 阅读全文
posted @ 2012-02-06 12:58 pengyingh 阅读(1362) 评论(0) 推荐(0) 编辑
摘要: 17. GradientsQuartz provides two opaque data types for creating gradients—CGShadingRefandCGGradientRef. You can use either of these to create axial or radial gradients. Agradientis a fill that varies from one color to another.Anaxial gradient(also called alinear gradient) varies along an axis betwee 阅读全文
posted @ 2012-02-06 12:55 pengyingh 阅读(693) 评论(0) 推荐(0) 编辑
摘要: 1. Quartz 2D 是mac os和iOS下的2d图形绘制引擎。2.Quartz 2D uses thepainter’s model(绘画者模式)for its imaging. In the painter’s model, each successive drawing operation applies a layer of “paint” to an output “canvas,” often called apage. The paint on the page can be modified by overlaying more paint through additio 阅读全文
posted @ 2012-02-06 12:54 pengyingh 阅读(1370) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://zonble.net/archives/2010_06/1330.php在使用到这些类中加头文件,例如1. #import "CTCarrier.h"2. #import "CTTelephonyNetworkInfo.h"iOS 4.0 的官方 API 里头,多了一个叫做 Core Telephony 的 framework;一直以来 Core Telephony 都是 private API,现在开放出来,但是从文件来看,里头根本没有几行,既没有告诉你应该怎么用,也没有范例,你从 framework 里头寥寥四个 class 阅读全文
posted @ 2012-02-06 12:52 pengyingh 阅读(510) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.raywenderlich.com/5235/beginning-opengl-es-2-0-with-glkit-part-2?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+RayWenderlich+(Ray+Wenderlich+|+iPhone+Developer+and+Gamer)In this second and final part of the tutorial, now that you know the basics we can get to the f 阅读全文
posted @ 2012-02-06 09:38 pengyingh 阅读(413) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.raywenderlich.com/5223/beginning-opengl-es-2-0-with-glkit-part-1iOS 5 comes with a new set of APIs that makes developing with OpenGL much easier than it used to be.The new set of APIs is collectively known as GLKit. It contains four main sections:GLKView/GLKViewController. These clas 阅读全文
posted @ 2012-02-06 09:36 pengyingh 阅读(798) 评论(0) 推荐(0) 编辑
摘要: Note from Ray:Congratulations, you guys did it! By helping to spread the word about theiOS 5 Feast, you guys unlocked the first iOS 5 tutorial early! Enjoy!This is a blog post by iOS Tutorial Team memberSteve Baranski, the founder ofkomorka technology, a provider of iOS development and consulting se 阅读全文
posted @ 2012-02-06 09:09 pengyingh 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.raywenderlich.com/5191/beginning-storyboards-in-ios-5-part-2In this second and final part of the tutorial series, we’ll cover segues, static table view cells, the add player screen, and a game picker screen!Introducing SeguesIt’s time to add more view controllers to our storyboard. W 阅读全文
posted @ 2012-02-06 09:04 pengyingh 阅读(489) 评论(0) 推荐(0) 编辑

导航