Magic Studio

专心做有逼格的APP!

12 2011 档案

ObjC block入门
摘要:objC的block是基于c语言开发,可以在c,c++和objc中使用。声明和使用一个block:block中会用到一个特殊的操作符^。整个block体都放在{}中。例如:1intmultiplier=7;2int(^myBlock)(int)=^(intnum){3returnnum*multiplier;4};借着这张E文的图,我们可以看到定义一个block是多么的简单。从左到右依次是:myBlock要返回的类型,这里是int。myBlock就是我们block的名字,而^操作符表明此变量是个block。之后则是这个block需要输入的参数的类型。赋值号后面的是这个block需要的参数,这里 阅读全文

posted @ 2011-12-14 16:04 Mr 布鲁斯 阅读(2536) 评论(0) 推荐(0) 编辑

Changing Tint / Background color of UITabBar
摘要:28 down vote favorite 46 share [fb] share [tw] The UINavigationBar and UISearchBar both have a tintColor property that allows you to change the tint color (surprising, I know) of both of those items. I want to do the same thing to the UITabBar in my application, but have found now way... 阅读全文

posted @ 2011-12-13 11:08 Mr 布鲁斯 阅读(1213) 评论(0) 推荐(0) 编辑

Introduction to MapKit Framework for iPhone Development
摘要:Introduction to MapKit Framework for iPhone Development Maps are important part of our life. We use them daily to find places and directions. The MapKit framework makes it easy for developers to implement applications which can make use of the maps in the applications. In this article we ar... 阅读全文

posted @ 2011-12-12 11:51 Mr 布鲁斯 阅读(404) 评论(0) 推荐(0) 编辑

asynchronous requests with NSURLConnection: when to release
摘要:up vote 0 down vote favorite share [fb] share [tw] Apple guide is very specific about releasing connection object: it's done in didFailWithError and connectionDidFinishLoading. Yet, when I do the same, I later get this in zombi-mode *** -[NSURLConnection releaseDelegate]: message sent... 阅读全文

posted @ 2011-12-05 18:03 Mr 布鲁斯 阅读(325) 评论(0) 推荐(0) 编辑

导航

统计信息

点击右上角即可分享
微信分享提示