四
25
2009
更为有用的iPhone开发开放源码库
发布者: seasun4,10, 2009 / in IPhone / by keremk
回顾2008,12月份,我曾经写过一篇文章,列举了非常有用的iPhone开发开放源码库。从那以后,我还碰到了更多的源码库,并且也有不少加入了开源的行列。这里列举一下:
社交 APIs:
Facebook Connect: 非常好的是,现在Facebook也提供了针对iPhone的接口,千万不要错过这篇五分钟介绍Facebook怎么连接iPhone的文章
Twitter: 貌似我在上篇文章中错过了提到。这个是由 Matt Legend Gemmell编写的。他的网站有不少开源代码,一长串的热卖的苹果应用服务程序。注意到Twitter在OAuth based authentication上的增长非常缓慢,并且也没有哪个开源库支持过它。所以这使得我们…
OAuth: 这个源码库是由 Karl Adam 编写的,兼容于苹果跟iPhone。为了使OAuth能够在iPhone上运行,你必须搭建UIWebView主机,这样您的使用者才被允许允许您的应用程序。Karl在这里明确的描述了OAuth。
网络和Web服务客户端库:
HTTP Server: So you need a small HTTP server running on your iPhone. (Perhaps to communicate with another phone?) Well you are in luck. There is a Cocoa based HTTP server originally for the Mac, that now also works on the iPhone. Check out their sample for the iPhone.
Quick SMTP client : May be you don’t want to wait for iPhone 3.0 for full UI based email support in your app. Or may be you need something with no UI. This is a quick SMTP client to send one-off emails from your app.
HTTP wrapper – ASIHTTPRequest: Here is a great wrapper around CFNetwork APIs to do HTTP requests. It supports all of GET/POST/PUT/DELETE requests, cookies, Basic/Digest/NTLM authentication support, GZIP for response data and more.
Restful Client, ObjectiveResource: This is an interesting library. It is an implementation of ActiveResource for ObjectiveC. Basically it attempts to simplify communicating with the RESTful servers, if you choose to have a RESTful server implementation in the back end. The project is very active and you can read more about it on iPhoneOnRails.com.
图片处理:
Simple Image Processing: 很不幸的是,CoreImage跟CoreImage过滤器对iPhone来说是无效的。但是,幸好有一款简单的开源库可以支持iPhone来处理一些任务,如:边缘检测,高斯模糊,直方图均衡等等。
地图:
Route Me: 如果您不想等到3.0版本的发布,或者您又想要确保您的应用程序能够在底层运行,又如果您想从 Microsoft Virtual Earth, Open Street Map 或 CloudMade选择素材,那么这个库文件就非常适合您
绘图和图形:
Core Plot: 这又是另外一个非常有意思的开源工程--规划提供二维数据可视化。这个仍然处于前期阶段,但是您也可以试试它的主干程序并且开始操作。
公用事业,工具箱,用户界面工具:
Three20: This is Joe Hewitt’s collection of IPhone UI classes that were originally seen in the iPhone Facebook app. Includes things like an improved photo viewer, Internet aware high performance table view controllers and other utility classes. Very useful stuff. He also very recently added some CSS-like styling support.
UIColor Utilities: Some very useful helper method additions for the UIColor to directly handle RGBA to UIColor additions, additional named colors, color space helpers etc.
Regex – RegexKitLite: Arguably one of the biggest omissions from a modern framework like Cocoa Touch, is the lack of a built-in support for regular expressions. The upcoming NSPredicate support in 3.0, will bring advanced string searching but it is still not regex. RegexKit is a 3rd party open source library for the Mac OS X. RegexKitLite is a lighter weight version of RegexKit that works on the iPhone.
Plausible Crash Reporter: 当然,如果你想知道,为什么您的应用程序崩溃了。这个库文件会帮助您记录在磁盘上,并且下次在启动您的应用程序的时候江程序崩溃的消息发送到您的服务器以供作进一步分析。
Project and file templates for static libraries: 好了,这最后的源码库是由我自己编写的。这里是更多的 详细博文。
现在就仅提供这些,很高兴分享!