Simon Shi

放飞梦想,专注于Mobile开发

  博客园 :: 首页 :: 新随笔 :: :: 订阅 :: 管理 ::

随笔分类 -  iOS

上一页 1 2 3 4 下一页

一些iOS开发相关的东东
摘要:By Paul on September 7th, 2011 inTechnobabblefrom:http://longweekendmobile.com/2011/09/07/objc-automatic-reference-counting-in-xcode-explained/Automatic Reference Counting(ARC) largely removes the burden of manual memory management, not to mention the chore of tracking down bugs caused by leaking or 阅读全文
posted @ 2012-04-10 10:24 Simon Shi 阅读(312) 评论(0) 推荐(0)

摘要:On November 3, 2011, inidevblogaday, by Steffen Itterheimfrom:http://www.learn-cocos2d.com/2011/11/everything-know-about-arc/I have no doubt that automatic reference counting (ARC) is the next big leap forward for Objective-C since the introduction of Objective-C 2.0. ARC allows you to put the burde 阅读全文
posted @ 2012-04-10 10:22 Simon Shi 阅读(306) 评论(0) 推荐(0)

摘要:Posted byMugunth Kumaron Dec 24, 2011 inArticles,Featured Articlesfrom:http://blog.mugunthkumar.com/articles/migrating-your-code-to-objective-c-arc/Recently, Apple introduced several new developer stuff including Xcode 4, ARC, LLVM Compiler 3.0 and iOS 5. From some of the questions on Stack overflow 阅读全文
posted @ 2012-04-10 10:18 Simon Shi 阅读(805) 评论(0) 推荐(0)

摘要:Apple makes it difficult if not imposible to customize elements such as a UITableView’s delete button. Well today I found a way to by pass all the limitations and add a custom image to a delete button. Now I first want to warn you, this is not an official way of doing this, we will be adding a UIImageView over the delete button’s subview. 阅读全文
posted @ 2012-04-09 09:19 Simon Shi 阅读(5135) 评论(0) 推荐(0)

摘要:原文地址:http://www.yuwenlan.com/blog/?p=91、将文件checkout到本地目录 svn checkout path(path是服务器上的目录) 例如:svn checkout svn://192.168.1.1/pro/domain 简写:svn co2、往版本库中添加新的文件 svn add file 例如:svn add test.php(添加test.php) svn add *.php(添加当前目录下所有的php文件)3、将改动的文件提交到版本库 svn commit -m “LogMessage“ [-N] [--no-unlock] PATH(如果 阅读全文
posted @ 2012-03-28 15:36 Simon Shi 阅读(144) 评论(0) 推荐(0)

摘要:无论在iPhone开发还是学习的过程中都会看到一些不是很理想的代码,不可否认自己也在不断“贡献”着这类代码。面对一些代码的“坏味道”,重构显然是个有效的解决途径。《iPhone开发重构》系列就想总结和补充iPhone开发中经历的一些重构,其间可能会引用一些开源以及实际项目的代码,本着对技术的探求,冒昧之处还请作者多多见谅。 记得刚开始做软件开发的时候,我的导师就在一次函数设计的时候说:“函数粒度很重要,但即使我做了接近二十年的软件,有时也无法很好把握粒度。这点就只可 意会不可言传了。”这句话可能一部分是出自谦虚,但更多是道出软件开发的规律。当时我们无法去理解,现在开始慢慢理解。我们设计一个函. 阅读全文
posted @ 2011-11-30 16:51 Simon Shi 阅读(193) 评论(0) 推荐(0)

摘要:无论在iPhone开发还是学习的过程中都会看到一些不是很理想的代码,不可否认自己也在不断“贡献”着这类代码。面对一些代码的“坏味道”,重构显然是个有效的解决途径。《iPhone开发重构》系列就想总结和补充iPhone开发中经历的一些重构,其间可能会引用一些开源以及实际项目的代码,本着对技术的探求,冒昧之处还请作者多多见谅。 代码重复是一个比较明显的“坏味道”,提取公用的方法就是解决的途径之一。iPhone开发中,使用UITableView的时候就有如下一段“经典”的 模板代码,因为这是项目模板自动生成的,所以很多人就自然接受了。但随着越来越多地通过copy&paste在一个项目中使用这 阅读全文
posted @ 2011-11-30 16:51 Simon Shi 阅读(185) 评论(0) 推荐(0)

摘要:无论在iPhone开发还是学习的过程中都会看到一些不是很理想的代码,不可否认自己也在不断“贡献”着这类代码。面对一些代码的“坏味道”,重构显然是个有效的解决途径。《iPhone开发重构》系列就想总结和补充iPhone开发中经历的一些重构,其间可能会引用一些开源以及实际项目的代码,本着对技术的探求,冒昧之处还请作者多多见谅。 写代码有时和说话一样,要体现层次感,可能是首先罗列要点,然后再逐点细化。但如果时而说要点,时而谈细节,就会造成听者理解上的障碍。如下的代码就会有这样的一个问题:重构前:- (UITableViewCell *)tableView:(UITableView *)tableV. 阅读全文
posted @ 2011-11-30 16:50 Simon Shi 阅读(153) 评论(0) 推荐(0)

摘要:无论在iPhone开发还是学习的过程中都会看到一些不是很理想的代码,不可否认自己也在不断“贡献”着这类代码。面对一些代码的“坏味道”,重构显然是个有效的解决途径。《iPhone开发重构》系列就想总结和补充iPhone开发中经历的一些重构,其间可能会引用一些开源以及实际项目的代码,本着对技术的探求,冒昧之处还请作者多多见谅。 在代码实现的过程中经常会遇到这样的情况:有些条件分支的判断中最初还比较简单,但随着需求不断修改以及检查不断细化,分支条件会不断地变复杂,以至于开始影响到主要代码流程。面对这种情况,就应该将分支条件进行提取来实现其固化。重构前后代码如下:重构前:- (BOOL)webVie. 阅读全文
posted @ 2011-11-30 16:50 Simon Shi 阅读(209) 评论(0) 推荐(0)

摘要:无论在iPhone开发还是学习的过程中都会看到一些不是很理想的代码,不可否认自己也在不断“贡献”着这类代码。面对一些代码的“坏味道”,重构显然是个有效的解决途径。《iPhone开发重构》系列就想总结和补充iPhone开发中经历的一些重构,其间可能会引用一些开源以及实际项目的代码,本着对技术的探求,冒昧之处还请作者多多见谅。 使用Objective-C的人应该都很熟悉通过alloc和init进行对象的“两阶段”创建。其实利用new的一次创建也是可以的,但由于“两阶段” 创建所具备的灵活性使得其成为了Objective-C创建对象的一种惯例。但真正使用的时候,开发人员有时更倾向与一些创建的辅助方. 阅读全文
posted @ 2011-11-30 16:48 Simon Shi 阅读(170) 评论(0) 推荐(0)

摘要:无论在iPhone开发还是学习的过程中都会看到一些不是很理想的代码,不可否认自己也在不断“贡献”着这类代码。面对一些代码的“坏味道”,重构显然是个有效的解决途径。《iPhone开发重构》系列就想总结和补充iPhone开发中经历的一些重构,其间可能会引用一些开源以及实际项目的代码,本着对技术的探求,冒昧之处还请作者多多见谅。 在iPhone开发的过程中经常会遇到根据不同的Table行或者标识符推入不同的Controller的需要,一个最直接的实现就是硬编码,通过if…else if…else或者switch…case…实现,代码如下:重构前: - (void)pushViewControll.. 阅读全文
posted @ 2011-11-30 16:47 Simon Shi 阅读(175) 评论(0) 推荐(0)

摘要:无论在iPhone开发还是学习的过程中都会看到一些不是很理想的代码,不可否认自己也在不断“贡献”着这类代码。面对一些代码的“坏味道”,重构显然是个有效的解决途径。《iPhone开发重构》系列就想总结和补充iPhone开发中经历的一些重构,其间可能会引用一些开源以及实际项目的代码,本着对技术的探求,冒昧之处还请作者多多见谅。 在一个应用中,不同地方所需要的内嵌网页浏览器,在iPhone可能就需要若干 个使用UIWebView的Controller(如下图)。这些Controller往往都有一些共通的行为,比如加载的时候会显示加载进度并在状态栏 显示网络状态图标,加载完毕后隐藏进度和网络状态显示. 阅读全文
posted @ 2011-11-30 16:46 Simon Shi 阅读(170) 评论(0) 推荐(0)

摘要:苹果对开发者提交的应用的审核之严格是出了名的,了解苹果的审核标准对于开发者防止应用被拒有着十分重要的意义。几天前苹果官方公布了 App Store 审核指南,后经译言网翻译成了中文,现全文转发,供大家参考。 阅读全文
posted @ 2011-11-25 11:13 Simon Shi 阅读(235) 评论(0) 推荐(0)

摘要:This is the second part of a two part tutorial series on using ARC in iOS 5. 阅读全文
posted @ 2011-11-21 14:10 Simon Shi 阅读(418) 评论(0) 推荐(0)

摘要:The most disruptive change in iOS 5 is the addition of Automatic Reference Counting, or ARC for short. ARC is a feature of the new LLVM 3.0 compiler and it completely does away with the manual memory management that all iOS developers love to hate. 阅读全文
posted @ 2011-11-21 14:02 Simon Shi 阅读(386) 评论(0) 推荐(0)

摘要:有用的ios开发人员博客 阅读全文
posted @ 2011-11-21 11:23 Simon Shi 阅读(151) 评论(0) 推荐(0)

摘要:Memory management in the iPhone is a hot topic. And since tonight I’m talking about it on tonight’s monthly meetup of the French-speaking Swiss iPhone Developers group, I might as well share some tips here from my own experience. 阅读全文
posted @ 2011-11-18 11:41 Simon Shi 阅读(229) 评论(0) 推荐(0)

摘要:[aView.subviews makeObjectsPerformSelector:@selector(removeFromSuperview)] 阅读全文
posted @ 2011-11-18 10:57 Simon Shi 阅读(149) 评论(0) 推荐(0)

摘要:iOS SDK 5.0 provides support for developing iOS applications and includes the complete set of Xcode tools, compilers, and frameworks for creating applications for iOS and Mac OS X. These tools include the Xcode IDE and the Instruments analysis tool among many others. With this software you can develop applications that run on iPhone, iPad, or iPod touch running iOS 5.0. You can also test your applications using the included iOS Simulator, which supports iOS 5.0. There are two Xcode iOS SDK 5. 阅读全文
posted @ 2011-08-22 16:46 Simon Shi 阅读(510) 评论(0) 推荐(0)

摘要:最近做iPad下的项目需要画一些统计图,比如折线图,直方图,饼图等等,比较常用的就是Core Plot了。Core Plot :http://code.google.com/p/core-plot/可以在这里去获取最新的Core Plot代码或者下载打包文件,具体的文档在documentation目录下面,分别有Mac和iOS的。目前最新的打包文件是 CorePlot_0.4.zip跟原版本相比,配置过程有些简化。1.在项目的目录下面New Group,命名为libraries2.在Binaries目录下的有分别对应iOS和Mac的文件,我这里以iOS为例,将CorePlotHeaders目录 阅读全文
posted @ 2011-08-17 18:46 Simon Shi 阅读(680) 评论(0) 推荐(0)

上一页 1 2 3 4 下一页