views:

632

answers:

7

What are the most useful open source libraries you have used in your iPhone Objective-C development? Any libraries that help you be more productive and can be a great asset for writing a new app.

+10  A: 

ASIHTTPRequest library. It's great for all HTTP/HTTPS requests and provides much better abstraction than the built-in SDK classes (e.g. handles time-outs, non-blocking, authentication, connects to progress views, etc).

notnoop
+5  A: 

Facebook's Three20 UI library. It provides a set of nice UI elements and abstractions that were used in building the Facebook application.

The main two features I love about it are:

  1. Internet-aware table view controllers

    TTTableViewController and TTTableViewDataSource help you to build tables which load their content from the Internet. Rather than just assuming you have all the data ready to go, like UITableView does by default, TTTableViewController lets you communicate when your data is loading, and when there is an error or nothing to display. It also helps you to add a "More" button to load the next page of data, and optionally supports reloading the data by shaking the device.

  2. URL-based Navigation

    TTNavigationCenter is for those grizzled old web developers like myself who want to organize their app by "pages" which can be displayed by visiting a URL.

    Your view controllers can simply register URL patterns that they handle, and when those URLs are visited the controllers will be created and displayed. You can also register generic actions that are called when a URL is visited.

    TTNavigationCenter also persists and restores the full path of navigation controllers and modal view controllers, so your users can quite the app and come back exactly where they left off.

notnoop
+1  A: 

FMDatabase, to access SQLite database more nicely than using the SQLite's raw C API.

Zoran Simic
+4  A: 

to draw diagrams with the iPhone you can use those 2 ones :

CorePlot

http://code.google.com/p/core-plot/

And s7graphView

http://code.google.com/p/s7graphview/

alt text

yonel
+2  A: 

Many similar questions have been asked here, including:

Brad Larson
Thank! I noticed these, but most have emphises on the UI components or frameworks; so I decided to open a question about general libraries, so it would include ASTIHTTPRequest for example.
notnoop
Yes, I thought I'd tie in some of the previous questions so that readers could jump off to those.
Brad Larson
+1  A: 

In our shipping iPhone app, flook, we make use of these, all of which we recommend highly.

ASIHTTPRequest

MGTwitterEngine

GHUnit for testing

JSON

Jane Sales
+1  A: 

Here is a list of iPhone libraries I found, it has quite a few not mentioned here.

Douglas