摘要:
原文地址:http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1Getting StartedFire up Xcode and create a new project. We’ll use the Single View Application template as our starting point and then build up the app from there.Fill in the template options as follows:Product Name: RatingsCo 阅读全文
摘要:
原文地址:http://www.raywenderlich.com/6031/beginning-icloud-in-ios-5-tutorial-part-2Setting Up the User InterfaceThe Xcode project template we chose already set up an empty view controller for us. We will extend it by adding the current document and a UITextView to display the content of our note.Start 阅读全文
摘要:
原文地址:http://www.raywenderlich.com/6015/beginning-icloud-in-ios-5-tutorial-part-1Note to get the most out of this tutorial, you will need two physical iOS devices running iOS 5 for testing, such as an iPhone and an iPad. The simulator does not currently have iCloud support.Under the HoodBefore we beg 阅读全文
摘要:
ABAddressBookRef addressBook = ABAddressBookCreate();CFArrayRef results = ABAddressBookCopyArrayOfAllPeople(addressBook);for(int i = 0; i < CFArrayGetCount(results); i++){ABRecordRef person = CFArrayGetValueAtIndex(results, i);//读取firstnameNSString *personName = (NSString*)ABRecordCopyValue(perso 阅读全文
摘要:
这段时间N忙,没办法,创业公司,当然抽时间也仍然再自学ios~OK,基础的语言基础,我就不多说了,从今天开始直接写游戏开发部分了;声明一点:iOS游戏开发系列没有我写的Android游戏开发系列有权威性,因为我也是在学习中,只是拿出来给大家分享,希望大家不要较真,现在咱们都是一年级新生,咳咳,好啦,不多说了,下面开始进入正题; 绘制一个图形,首先我们肯定需要一个视图view,在iOS中是UIView,下面用两种方式介绍如何在iphone上显示视图; 首先创建一个项目:(Window-based Application) 然后新建一个自定义的GameView类,继承UIView类; Ok,除了继 阅读全文
摘要:
最近几天仔细了解了iOS游戏开发引擎,常用的cocos2d,Unity引擎,那么Unity是非免费的,而cocos2d则是免费开源的; 最后促使我选择cocos2d的原因有两点: 1.最重要的原因是它对应的开发工具,尤其是 “ParticleDesigner”,粒子系统编辑器,非常的喜欢(需付费$7.99美元),下载试用版操作了以下,没说的,狠给力;截图如下:(当时就掏出信用卡去购买,只是突然有点小意外,没买上,咳咳、以后再说)2.其cocos2d-x的跨平台挺看好,因为我也开发android系统,也清楚在android游戏引擎上cocos2d也有其对应的版本;这样一款引擎可以两平台都... 阅读全文
摘要:
原文地址:http://www.raywenderlich.com/6063/uikit-particle-systems-in-ios-5-tutorial?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+RayWenderlich+(Ray+Wenderlich+|+iPhone+Developer+and+Gamer)You’ve probably seen particle systems used in many different iOS apps and games for explosions, 阅读全文
摘要:
原文地址:http://www.cnblogs.com/ydhliphonedev/archive/2011/09/05/2167184.html在ViewController中重写touch的事件的方法体就可实现特定的touch功能(但这些touch事件会被加在之上的tableView或scrollView等屏蔽,希望知道解决方案的留下方法).下面代码实现清扫事件- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { messageLabel.text =@"Touches Began"; // 阅读全文
摘要:
http://www.cocoachina.com/bbs/read.php?tid=90544&page=1试了一下,该功能在5.0以下的系统不支持。在代码中调用如下代码:NSURL*url=[NSURL URLWithString:@"prefs:root=WIFI"];[[UIApplication sharedApplication] openURL:url];即可跳转到设置页面的对应项。[font=]About — prefs:root=General&path=AboutAccessibility — prefs:root=General& 阅读全文
摘要:
当旋转CCNode时,anchorPoint决定该CCNode旋转的原点;当缩放CCNode时,anchorPoint决定该CCNode缩放的原点;当设定CCNode的position时,anchorPoint决定该CCNode的哪个点位于position。比如一个CCSpirte的anchorPoint在(0.0f, 0.0f),position在(100, 100),则这个CCSprite的左下角将被放在(100, 100)处。下面的公司可以用于CCNode的实际位置(实际位置的意思是该CCNode中心点的位置)actualPosition.x = position.x + width*( 阅读全文