Fork me on GitHub

2012年2月6日

摘要: iOS Hardware GuideHardware modelsFollowing table summarizes iOS hardware available in devices of various generations:Common to all iOS devicesScreen: 320x480 pixels, LCD at 163ppi (unless stated otherwise)Built-in accelerometerWi-FiOriginal iPhoneARM11, 412 Mhz CPUPowerVR MBX Lite 3D graphics proces 阅读全文
posted @ 2012-02-06 13:36 pengyingh 阅读(218) 评论(0) 推荐(0)
摘要: Advanced iOS scriptingDetermining Device GenerationDifferent device generations support different functionality and widely varying performance. You should query the device for its generation and decide which functionality should be disabled to compensate for slower devices.You can retrieve device ge 阅读全文
posted @ 2012-02-06 13:35 pengyingh 阅读(202) 评论(0) 推荐(0)
摘要: Mobile KeyboardSometimes when developing your game you might need to have access to the keyboard Input that your target platform provides, this is done straight forward in unity just by calling some attributes via scripting.Using the KeyboardGUI ElementsThe keyboard will appear automatically when a 阅读全文
posted @ 2012-02-06 13:33 pengyingh 阅读(257) 评论(0) 推荐(0)
摘要: Mobile InputUnity iOS/Android offers you access to the iPhone, iPad and Android input systems viaInputandiOS Inputscripting interfaces.Inputprovides access to the multi-touch screen, accelerometer and device orientation.iOS Inputprovides access to geographical location.Access to keyboard on mobile d 阅读全文
posted @ 2012-02-06 13:32 pengyingh 阅读(375) 评论(0) 推荐(0)
摘要: Unity iOS BasicsThis section covers the most common and important questions that come up when starting to work with iOS.PrerequisitesI've just received iPhone Developer approval from Apple, but I've never developed for iOS before. What do I do first?A: Download the SDK, get up and running on 阅读全文
posted @ 2012-02-06 13:31 pengyingh 阅读(296) 评论(0) 推荐(0)
摘要: Unity RemoteUnity Remote is a software application that makes your iPhone/iPad act as a remote control for your project in Unity. This is useful for rapid development when you don't want to compile and deploy your project to device for each change and prefer to use the Editor Game window instead 阅读全文
posted @ 2012-02-06 13:31 pengyingh 阅读(721) 评论(0) 推荐(0)
摘要: Getting Started with iOS DevelopmentDeveloping for the iOSBuilding games for devices like the iPhone/iPad requires a different approach than targeting the home PC market. Unlike the PC market, your target hardware is standardized and not as fast or powerful as a computer with a dedicated video card. 阅读全文
posted @ 2012-02-06 13:29 pengyingh 阅读(544) 评论(0) 推荐(0)
摘要: For security purposes, an iOS application has limited number of places where it can write its data. When an application is installedon a device, iTunes creates a home directory for the application. This directory represents the universe for that application and contains everything the application ca 阅读全文
posted @ 2012-02-06 13:24 pengyingh 阅读(805) 评论(0) 推荐(0)
摘要: NOTE:从一个设备备份,刷机之后可以恢复游戏进度。同一个游戏同一个icloud ID在不同设备上,要看游戏本身是不是支持云,支持的话,A设备打到第几关,B设备的进度也是第几关(忽略网络延时)如果不支持,相当于两个不同的游戏。1. iCloud如何备份?iCloud 自动备份 iOS 5 设备上最重要的数据。在 iPhone、iPad 或 iPod touch 上,通过设置 > iCloud > 储存与备份启用了“备份”之后,只要您的设备处于以下状态,每天就会运行备份:通过 Wi-Fi 连接到互联网连接到电源锁定屏幕另外,只要从设置 > iCloud > 储存与备份中选 阅读全文
posted @ 2012-02-06 13:23 pengyingh 阅读(799) 评论(0) 推荐(0)
摘要: iCloud StorageiCloud storage is a set of interfaces and services for sharing data among instances of your app running ondifferent devices. The idea behind iCloud is to provide a single place where your app can write its data. Changes made by one instance of your app are propagated to the user’s othe 阅读全文
posted @ 2012-02-06 13:22 pengyingh 阅读(962) 评论(0) 推荐(0)
摘要: Storyboards are the new way to define your application’s user interface. In the past, you used nib files to define your user interface one view controller at a time. A storyboard file captures your entire user interface in one place and lets you define both the individual view controllers and the tr 阅读全文
posted @ 2012-02-06 13:21 pengyingh 阅读(416) 评论(0) 推荐(0)
摘要: Create, Set Up, and Apply FiltersListing 2-5shows how to create, set up, and apply a hue filter. You use thefilterWithName:method to create a filter whose type is specified by thenameargument. The hue adjust filter is named CIHueAdjust. You can obtain a list of filter names by following the instruct 阅读全文
posted @ 2012-02-06 13:17 pengyingh 阅读(1203) 评论(0) 推荐(0)
摘要: Core Image is an image processing technology built into Mac OS X v10.4 and iOS 5.0 that leverages programmable graphics hardware whenever possible to provide near real-time processing. The Core Image application programming interface (API) provides access to built-in image filters for both video and 阅读全文
posted @ 2012-02-06 13:16 pengyingh 阅读(2080) 评论(0) 推荐(0)
摘要: Twitter FrameworkThe Twitter framework (Twitter.framework) provides support for sending Twitter requests on behalf of the user and for composing and sending tweets. For requests, the framework handles the user authentication part of the request for you and provides a template for creating the HTTP p 阅读全文
posted @ 2012-02-06 13:13 pengyingh 阅读(279) 评论(0) 推荐(0)
摘要: 原文地址: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 阅读(365) 评论(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)

导航