Fork me on GitHub

2012年2月6日

摘要: 原文地址:http://www.raywenderlich.com/5509/beginning-turn-based-gaming-with-ios-5-part-2Sending a TurnWe need to set up a method that sends a turn. When it’s our turn, we want to be able to add a string of text (max 250 characters) to the end of the current story. When we send a turn, we’ll add our text 阅读全文
posted @ 2012-02-06 13:03 pengyingh 阅读(256) 评论(0) 推荐(0)
摘要: 原文地址:http://www.raywenderlich.com/5480/beginning-turn-based-gaming-with-ios-5-part-1In iOS5, Game Center has a new API that makes it even easier to create another type of game – turn-based games!This new API is perfect for board games, turn based strategy, word games, and other types of casual turn 阅读全文
posted @ 2012-02-06 13:02 pengyingh 阅读(364) 评论(0) 推荐(0)
摘要: 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 阅读(315) 评论(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 阅读(773) 评论(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 阅读(1372) 评论(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 阅读(697) 评论(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 阅读(1387) 评论(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 阅读(518) 评论(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 阅读(418) 评论(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 阅读(811) 评论(0) 推荐(0)

导航