Top 10 most useful IOS libraries to know and love
Http://www.raywenderlich.com/21987/top-10-most-useful-ios-libraries-to-know-and-love
Tweet
The winner's plaque
This is a post by IOS tutorial team member
Marcelo Fabri, an iOS, Python and Java developer working
Movile. Check out also his personal website.
A while back, you guys voted for your
Favorite IOS libraries. At long last, it's time to know the winners!
And to make it fun, the top "Reader's Choice" library winner wins an engraved plaque from all of us to thank them for writing such a popular library!
In addition to the "Reader's Choice" winner from your votes, we also made a private vote from the IOS tutorial team. we also asked some guest stars to chime in with their thoughts. it was a lot more fun that choosing all by myself! :]
Keep reading to find out how the system works, and who the winning libraries were!
How it works
We have three voting entities: the readers, the IOS tutorial team and the guest stars. Each one of them was asked to decide the best five libraries, following these rules:
- One cannot vote for his own library.
- Large frameworks, like the gaming ones (e.g.
Cocos2d) are out.
- Libraries that don't run on the device, such
Cocoapods or
Rack: coredata, weren't supported ded.
- In case of draws, we preferred libraries that provides functionality that IOS doesn' t offer yet. this is important, because a lot of libraries were written some time ago, when some functionality (e.g. JSON parsing) weren't supported ded on IOS.
Each guest star nomination counted as one point (they cocould nominate five libraries), and we distributed the readers and tutorial team points by the position the library was at the pool. the first one got five points, the second, four points, and so on...
Until the th, which got one vote.
The guest team were composed by the following developers (sorted alphabetically ):
- Bill dusydney: Former Apple application framework evangelist, and author of the books
Ios sdk development and
Core animation for Mac OS X and the iPhone.
- Evan doll: Cofounder
Flipboard, former Apple iPhone engineer and also taught cs193p (iPhone application programming) at Stanford on 2009 (the classes are available on
ITunes U ).
- Jeff verkoeyen: The lead developer on Facebook for iPad, and creator
Nimbus.
- Mattt Thompson: Creator
Nshipster,
Afnetworking, and a lot more.
- Peter steinberger: Creator
Pspdfkit,
Psstackedview, and more recently
Pstcollectionview, which mimics uicollectionview if you needs to support IOS 4 or 5.
- Sam soffes: Creator
Cheddar (which now
Is now open source), and libraries such
Sstoolkit and
Sskeychain.
Each one of them has got his own badge, thanks kindly to Ray's wife Vicki! They'll be used to identify the guest votes on each library.
Bill's badge
Evan's badge
Jeff's badge
Mattt's badge
Peter's badge
Sam's badge
I also wowould like to thankLoren brichter(Creator of Tweetie-which Twitter has bought-and creator the "pull to refresh" pattern) and
Erica Sadun(Author of some books, especially
The iPhone developer's cookbook). They were asked to help us, but both of them said they prefer doing their own stuff-which some people mentioned, and we'll discuss it later!
We 've also got some more badges!
Reader's choice position
IOS tutorial team position
Overall position
It's time to know our winners!
Honorable mentions
Not every library nominated by our guest voters made to the top 10, but they deserve a mention, don't they? Here are they (alphabetically sorted ):
Cocoalumberjack
"Highly writable able logging framework"-Evan doll
It's faster than nslog, and as easy to use.
Coreplot
Core plot provides 2D visualization of data, creating a lot of graphs types, such as pizza ones, bar ones, and Lot a more. We even have an awesome
Tutorial on the site!
Dcintrospect
"An incredibly useful set of debugging tools that you can plug into your app"-Evan doll
Fmdb
"A minimal objective-C SQLite wrapper with a thoughtfully crafted API"-Evan doll
Sometimes, you can't use coredata, and must use SQLite directly. With fmdb, it becomes easier.
Iso8601dateformatter
"Peter Hosey's indispensable date formatter is a mainstay of my library shortlist. Filed under
Things I wish Apple provided (* cough * base64 encoding * cough *), at least I can depend on iso8601dateformatter to get the job done ."-Mattt Thompson
Nimbus
"Not only is Nimbus incredibly useful, but it serves as an exemplar of responsible development (a "framework whose feature set grows only as fast as its documentation" is an attitude I wish a more lot projects wocould adopt ). three cheers to Jeff verkoeyen
And all of the contributors for their hard work on this ."-Mattt Thompson
Reactivecocoa
"Because the idea of this is more than great, and it's a great, fresh approach on solving common problems. and even if you're not using futures, they have a great library for KVO that automatically deregisters."-Peter steinberger
Sdurlcache
"Peter steinberger's fork of sdurlcache is as useful as it is an impressive example of some fascinating optimization strategies. although recent updates to nsurlcache obviate some of the need of sdurlcache, it's still a great choice as a less mysterious,
More featured Implementation of URL caching ."-Mattt Thompson
It's good to remember that since iOS 5, nsurlcache supports disk cache. However, sdurlcache may be helpful if you need more control over caching.
Tttattributedlabel
"Tttattributedlabel is really great if you need to show attributed text prior to iOS 6 ."-Sam soffes
The winners
Sstoolkit
"Sam soffes is a force of nature when it comes to objective-C software, and sstoolkit exemplifies that. it's a veritable tour-de-force of functionality, from UI components to handy Foundation categories. and all well-designed and incluented. brilliant."
-Mattt Thompson
Mattt describes very well what sstoolkit is. besides having UI components, it has a lot of categories to make our lives better, helping us with common problems, such as detecting if a device has Retina display or cropping an image.
Gpuimage
Gpuimage is a great framework to deal with image, live camera and video processing, using the GPU instead of the CPU, which makes it a lot faster. it is also faster than Apple's core image, and supports custom filters and iOS 4, which core image doesn' t.
However, it currently lacks of some advanced features that core image has, such as face detection. It's very well known ented, with sample applications. Give it a chance!
Socketrocket
"If you're working with Web sockets on iOS, look no further than socketrocket by Mike Lewis of Square. super-solid and easy-to-use, it's a perfect fit for any real-time app."-Mattt Thompson
Web sockets allow bi-direction communication over a single TCP connection. only some modern browsers support it, but it's really powerful in real-time applications. pooling seem so wrong now, doesn' t it?
Hockeykit
"We use hockeyapp for beta distribution and In-app crash reporting. Highly recommended ."-Evan doll
"The best IOS Crash reporter on the market. Even has the stack trace when an exception fires. Not even Apple has that feature ."-Peter steinberger
Hockeykit has CES the pain of beta distribution, and also has an amazing crash report. Try it!
Jsonkit
"Blazing fast JSON parsing, backwards compatible with older IOS versions"-Evan doll
"A json implementation written by one of the most badass objective-C developers"-Jeff verkoeyen
It's important to remember that IOS has native JSON implementation (nsjsonserialization) Since IOS
5, but jsonkit sometimes is still useful.
Magicalrecord
Playing with core data is kind of lame. A lot of boilerplate code, extra complexity... Frustrating. magicalrecord was created to solve that problems, keeping the option further customize the requests if needed. It was too red by rails 'Active record, which
Is based on
Active record pattern, named by Martin Fowler.
Restkit
Restkit is a library created to reduce the Code (and work) needed to get your app integrated with a rest Remote API. it can do the network stuff, parse the results (XML or JSON) and map them into your own custom classes. seems Too magical? Be sure to take
A look
Introduction to restkit tutorial by IOS tutorial team member Scott McAlister.
Testflight
Testflight is a service to easily distribute your beta builds to your tester. no iTunes, no need to manually download. IPA files, no more long emails with instructions. the tester has es an email with a link, and it just works. besides providing distribution,
It also allows you to get crash reports, get feedback that your testers give from inside the app and even put checkpoints (to see if a feature is really being used, for example ). it now has a desktop app, that uploads builds even faster! It also have some
APIS, so you can automate your distribution flow, creating a continuos Integration Environment (we cover that on
IOS 6 by tutorials book !).
Mbprogresshud
Sometimes, our apps are required to do long tasks, such as I/O (mainly networking, or even files) or hard processing. however, the user must have a visual feedback, so he won't think the app has crashed. mbprogresshud provides it, by creating a HUD (a transparent
Display that shows info to the user), usually with an uiactivityindicator on it (but it's mizmizable !). You can also configure some other things, like the text that is shown, the animation, X and Y offsets, and a lot more! We have some Tutorials that use
It:
Introduction to In-app purchases,
Introduction to mapkit on iOS tutorial and
How to write an iOS app that uses a web service.
And the great winner is: afnetworking!
"Light-weight and super fast, afnetworking runs circles around other networking frameworks ."-Jeff verkoeyen
"It's a fresh start on networking, has a great API and is widely used (and thus greatly tested ).
I see so many networking libraries... But this stuff is hard. Better stand on the shoulders of giants then reinvent your own ."-Peter steinberger
"I really love afnetworking. It's a really fantastic and fresh approach to networking.-Sam soffes
Afnetworking is everything our guests told us. it's a fresh start: it was written with blocks in mind since the beginning (remember that blocks were introduced only on iOS 4.0), as well as GCD and nsoperation. it also uses arc now and it requires IOS 5.0
Or above.
It's well-designed, with the idea that the core shoshould have only what really matters (there's some plugins available, to extend the existing features ). it's widely used and it has been well adopted by the Community (it's currently the third most watched
Objective-C repository on GitHub). Besides that, it's constantly evolving and has such a rich documentation, with plenty of examples available.
For being the readers 'choice (since it was the most voted library in by our pool), its creators
Mattt Thompson (who was also our guest here) and
Scott Raymond will each receive each a gorgeous award!
Take a look on how beautiful they 're. You deserve it, guys! Thanks for creating this amazing library (and open sourcing it )!
The awards for afnetworking creators
Ray will be in touch with Matt and Scott to ship them their rewards ASAP. Congrats again Matt and Scott, and on behalf of the IOS community we send you a huge thanks!
Note:These awards were kindly donated by Greg from
Mtmawards.com. if you like these awards and want to order some for your own awards at your company, greg mentioned there's a 10% discount for any reader of this site-just use the discount code "ok1232 ″. thanks again Greg!
Want to learn afnetworking? We have a bunch of tutorials on that! :] Here they are:
- Introduction to cocoapods
- How to create an app like Instagram
A Web Service backend-Part 1 and
Part 2
- How to synchronize core data with a Web Service-Part 1 and
Part 2
- How to Use nsoperations and nsoperationqueues
Some of you might be thinking: "What about
Asihttprequest? Why wasn't that on the list? I doubt this afnetworking thing is better than that !"
Asihttprequest was very important on the iOS ecosystem a while back. however, it suffers from some bad design decisions, and it's too old now. it was created on 2008, when things were a lot different from now. no arc, no GCD, No blocks...
Even its creator say it's time to let it go. Give afnetworking a chance. You won't be sorry!
To be or not to be?
As I said in the beggining of the article, some guest stars (and iOS tutorial team members) told us that they usually write their own stuff, instead of using an external library. bill dusydney pointed a good reason to do so:
"The thing I hate about most frameworks is that people copy 5 k lines of code when they need 15 ″.
IOS tutorial team member matthijs hollemans also agreed with Bill:"They are often too complex, have too features that I don't use". So you might ask yourself: "Do I Need To rewrite everything from the scratch? I don't have any idea on how
Shocould I start !".
Matthijs also gave us an answer:"Sometimes I take an existing library, such as mbprogresshud, to see how they have solved that problem, and then rewrite it to make it simpler, more robust, and more up-to-date with current APIs".
He went even further about the need of external libraries:"A lot of the third-party libraries out there were originally written for iOS 2.x or 3.x, but since then great new stuff has been added such as blocks and arc, which can really cut down on
Amount of work the library has to do".
I personally agree with both of them: You shocould use libraries when you really need, generally for problems that are not the core of your app and have been already solved by others, such as JSON/XML parsing (but that's no longer needed after iOS 5) and networking
(Maybe that's one reason to afnetworking getting so voted-besides being delightful, of course ).
But this kind of feeling comes only with experience. So, if you're a rookie, don't worry! Using libraries is how you'll learn when they 'd help and when they 'd limit your app.
Where to go from here?
We let you know about some really useful libraries (at least at the time of the writing), but it's up to you to take a deeper look at each one of them, understand how they work, and more importantly, when they are best suitable. we also pointed out some
Reasons to not use external libraries, or at least, be sure that you really need them.
Adding these libraries to your project is easier
Cocoapods, since all of them already have a spec file. Check out
My previous post to know more about it!
If you have any libraries you really like to recommend to others, thoughts about this contest, or any other thoughts about IOS libraries in general, please join the Forum discussion below! :]
This is a post by IOS tutorial team member
Marcelo Fabri, an iOS, Python and Java developer working
Movile. Check out also his personal website.
Tweet