Simon Shi

放飞梦想,专注于Mobile开发

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

2012年4月10日

摘要: byMattjDrakeonNOVEMBER 22, 2011inCODE TIPSfrom:http://howtomakeiphoneapps.com/using-storyboards-to-create-a-single-view-application/1363/How To Use Storyboards To Create An iOS AppThe simplest app that I can think of that would make use of iOS Storyboards is a single scene app that has a button that 阅读全文
posted @ 2012-04-10 14:26 Simon Shi 阅读(365) 评论(0) 推荐(0) 编辑

摘要: This is a post by iOS Tutorial Team memberMatthijs Hollemans, an experienced iOS developer and designer.from:http://www.raywenderlich.com/5191/beginning-storyboards-in-ios-5-part-2Note from Ray:This is the third iOS 5 tutorial in theiOS 5 Feast! This tutorial is a free preview chapter from our new b 阅读全文
posted @ 2012-04-10 11:19 Simon Shi 阅读(206) 评论(0) 推荐(0) 编辑

摘要: This is a post by iOS Tutorial Team memberMatthijs Hollemans, an experienced iOS developer and designer.from:http://www.raywenderlich.com/5138/beginning-storyboards-in-ios-5-part-1Note from Ray:This is the second iOS 5 tutorial in theiOS 5 Feast! This tutorial is a free preview chapter from our new 阅读全文
posted @ 2012-04-10 11:16 Simon Shi 阅读(315) 评论(0) 推荐(0) 编辑

摘要: 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 阅读(300) 评论(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 阅读(299) 评论(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 阅读(734) 评论(0) 推荐(0) 编辑

2012年4月9日

摘要: 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 阅读(5125) 评论(0) 推荐(0) 编辑

2012年3月30日

摘要: 1.Developer location setting in Xcode 4.3.2sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer2.Verify xcodebuild versionxcodebuild -version 阅读全文
posted @ 2012-03-30 14:57 Simon Shi 阅读(242) 评论(0) 推荐(0) 编辑

摘要: 1.Check your ruby versionruby -v2.Install rvmbash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)3.Install homedrew/usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb) 阅读全文
posted @ 2012-03-30 14:54 Simon Shi 阅读(986) 评论(0) 推荐(0) 编辑

2012年3月28日

摘要: 原文地址: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 阅读(137) 评论(0) 推荐(0) 编辑

2012年2月20日

摘要: 1,不要过量吸取维他命A.孕妇摄取太多的维他命A,会导致早产和胎儿发育不健全,所以每日只可摄取400-1250微克的维他命A,其中猪肝含极丰富维他命A,孕妇切忌过量进食.2,要限制饮用含咖啡因的饮品.摄取太多咖啡因会影响胎儿的骨骼成长,有可能出现手指,脚趾畸形的情况,也会增加流产,早产,婴儿体重过轻的情况.最好避免饮用含有咖啡因的饮品,如果非喝不可,每日不可多过2杯咖啡或3杯半浓茶.3,避免喝酒.如果喝太多酒,会令胎儿畸形,影响胎儿智商和生理上的发展,基本上是避免喝.2杯啤酒,或1杯葡萄酒为极限.4,避免高糖,高脂肪食物.吃太多高糖,高脂肪食物如汽水,糖,薯片,令孕妇过胖,从而增加妊娠性糖尿病 阅读全文
posted @ 2012-02-20 12:55 Simon Shi 阅读(226) 评论(0) 推荐(0) 编辑

摘要: 2011孕妇奶粉排行榜 阅读全文
posted @ 2012-02-20 11:35 Simon Shi 阅读(313) 评论(0) 推荐(0) 编辑

2011年11月30日

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

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

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