摘要:
1)NsRunLoop的封装系统提供的UIActionSheet是异步调用,改进iOS客户端的升级提醒功能利用NSRunLoop来将原本的异步方法改成同步,可以使我们在某些情形下,方便地将异步方法变成同步方法来执行。Demo代码我放到github上了,地址是这里。2)Block实现在Block-Based Action Sheet中介绍了用Block实现的UIActionSheet,code in this article is available in DTFoundationproject on GitHub. 阅读全文
摘要:
PhotoStack -- An iOS class to create a stack of photos, inspired by the eBay App实现效果很酷的图片浏览方式。界面上叠放着一叠照片,用手拨动(滑动)顶部的图片,顶部的图片会被移到这叠图片的最底部,从而显示出下一张图片。开源实现位于:https://github.com/tomlongo/PhotoStack 阅读全文
摘要:
1)之前使用SBJson的版本在实现单件模式的时候不是线程安全,解决方案见:解决SBJSON中存在的线程安全问题github上已经提交了相应的commits.2)SBJson的速度问题。根据不要使用SBJSON(json-framework)的意见,“如果你的app只支持iOS 5.0以上系统,那么直接用苹果官方提供的JSON库:NSJSONSerialization库即可。如果你的app要支持iOS 5.0以下的系统,那么我个人推荐JSONKit,不过JSONKit本身做了很多内存上的优化,所以不支持ARC,你在使用时可以对其加上 -fno-objc-arc 的编译标志即可”。 阅读全文
摘要:
记录一下:Add the following directive into the Compiler Flags field: -fno-objc-archttp://korutech.hubpages.com/hub/Adding-non-ARC-sources-to-ARC-projects 阅读全文
摘要:
BackgroundSingletons classes are an important concept to understand because they exhibit an extremtely useful design pattern.This idea is used throughout the iPhone SDK, for example, UIApplication has a method called sharedApplication which when called from anywhere will return the UIApplication ins 阅读全文
摘要:
官方网站上对Node.js的介绍是 “Node.js is a platform built onChrome's JavaScript runtimefor easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across dis 阅读全文
摘要:
下面的链接给出了很多开源的iOS app,开发者可以学习别人的code。“ It can be tough to learn how to develop, especially when it comes to finding complete examples. That’s why I put this list together. Each of these open source iPhone apps is not just open source, but has been in the app store, and all but one are in there right 阅读全文
摘要:
http://marshal.easymorse.com/archives/tag/ios有关于iOS开发的blog。总结得蛮清晰的。 阅读全文
摘要:
RYCE DURBINSaturday, September 2nd, 2006CommentsPaul Graham believes we’re not in a bubble, that startups shouldn’t worry about their business models and the best companies are the ones with potential to kill old monopolies. Graham is a partner atY Combinator, a Mountain View firm that invests in ve 阅读全文
摘要:
Check If Custom URL Scheme Is DefinedPosted on July 15, 2012 byJohn MuchowinCore ServicesCustom URL Schemes are the Apple approved way for one application to communicate with another. For example, you can launch the phone application to make a call using the custom URLtel://. Likewise, you can call 阅读全文