Magic Studio

专心做有逼格的APP!

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 42 下一页

2012年2月7日 #

iOS 4 iPhone Database Implementation using SQLite [转]

摘要: What is SQLite? SQLite is an embedded, relational database management system (RDBMS). Most relational databases (Oracle and MySQL being prime examples) are standalone server processes that run independently, and in cooperation with, applications that require database access. SQLite is referr... 阅读全文

posted @ 2012-02-07 16:29 Mr 布鲁斯 阅读(311) 评论(0) 推荐(0) 编辑

2012年1月28日 #

Xcode的gdb调试

摘要: Xcode GDB 调试 关于GDB 对于大多数Cocoa程序员来说,最常用的debugger莫过于Xcode自带的调试工具了。而实际上,它正是gdb的一个图形化包装。相对于gdb,图形化带来了很多便利,但同时也缺少了一些重要功能。而且在某些情况下,gdb反而更加方便。因此,学习gdb,了解一下幕后的实质,也是有必要的。 gdb可以通过终端运行,也可以在Xcode的控制台调用命令。本文将通过终端讲述一些gdb的基本命令和技巧。 首先,我们来看一个例子: #import <Foundation/Foundation.h> int main(int argc, char... 阅读全文

posted @ 2012-01-28 20:13 Mr 布鲁斯 阅读(890) 评论(0) 推荐(0) 编辑

2012年1月6日 #

Remove @Override annotration解决

摘要: yMichael Myers♦Nov 19 '10 at 15:17This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned more than 10reputationon this site.5 Answersactiveoldestvotes up vote275down voteaccepted ... 阅读全文

posted @ 2012-01-06 18:11 Mr 布鲁斯 阅读(411) 评论(0) 推荐(0) 编辑

2011年12月14日 #

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 布鲁斯 阅读(2510) 评论(0) 推荐(0) 编辑

2011年12月13日 #

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 布鲁斯 阅读(1212) 评论(0) 推荐(0) 编辑

2011年12月12日 #

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 布鲁斯 阅读(402) 评论(0) 推荐(0) 编辑

2011年12月5日 #

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 布鲁斯 阅读(322) 评论(0) 推荐(0) 编辑

2011年11月30日 #

Xcode4 单元测试快速入门[转]

摘要: 这是一篇xcode单元测试入门的文章。有空了给各位翻出来方便大家看。This is a post by iOS Tutorial Team member Unit testing is great because it makes your life easier. Easier to deliver high quality code, and easier to make changes without fear of breaking something! But what might not be so easy is getting started if you’r... 阅读全文

posted @ 2011-11-30 11:36 Mr 布鲁斯 阅读(648) 评论(0) 推荐(0) 编辑

2011年11月22日 #

Modal View Controller Example – Part 2[转]

摘要: n the first part of this tutorial, we set up a pair of simple views in Interface Builder that we switched between modally. In this tutorial, we’ll make them somewhat useful and pass data between them using delegates. The concept of protocols and delegates is an important and somewhat complex... 阅读全文

posted @ 2011-11-22 20:59 Mr 布鲁斯 阅读(245) 评论(0) 推荐(0) 编辑

Modal View Controller Example[转]

摘要: In your iPhone app, you’ll probably be spending most of the time pushing new view controllers to the stack in order to show screen flow. Sometimes, though, you just want to popup a screen for quick display or input. Here’s a quick demo/tutorial on the different standard modal views offered b... 阅读全文

posted @ 2011-11-22 18:35 Mr 布鲁斯 阅读(377) 评论(0) 推荐(0) 编辑

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 42 下一页

导航