Live data from Hacker News

iOS Libraries

appdevmag.com

41–50 of 78 posts

Re: iOS Libraries

#42

> Regular Expressions are a really powerful tool, and the absence of support for regular expressions in the iPhone SDK seems to be a glaring omission. NSRegularExpression was added to the iOS SDK in 4.0. Not available if you still aim to be 3.x-compatible (for iPhones and first-gen Touch), but 4.0 has been out for 9 months now, I think it's time to bury this one (note: you could still find NSRegularExpression insuffi…

The Syntax for NSRegularExpression is really awful. Main reason why I stick with RegexKitLite.

Sure, as I said you can find RegexKitLite superior for a variety of reasons, but that's different from the original complaint that the iOS SDK ships without regex support.

Re: iOS Libraries

#43
post #22

I've never tried iOS development, and I'm a bit surprised by many of these library recommendations. For example HTTP requests, regular expressions and progress indicators strike me as something your platform definitely should provide you with. Of course it's great that there are quality libraries to fill in where the platform falls short.

Even on platforms where making an http request is still only a few lines of standard library code (ruby, nodejs, python) -- there is still a vast selection of libraries that make it easier for you. (httparty, request, etc)

Re: iOS Libraries

#45
post #31

ASIHttpRequest (hated handling network requests before), RegexKitLite (still superior to the recent NSRegEx) and Flurry (why doesn't apple give you this level of detail) are fantastic. Flurry's size is a bit of a downer, but implementation is easy.

[FlurryAPI setSessionReportsOnCloseEnabled:NO] seems to avoid some crashes on reporting logging data.

Re: iOS Libraries

#46

Also, for game developers, Cocos2D iphone is pretty good too. It's reasonably lightweight, fast, and completely free. Pair that up with Box2D or chipmunk, which it comes with, and you have a complete game engine at no cost, with a good amount of community support. edit -- link: http://www.cocos2d-iphone.org/

I played with Cocos2d and I liked it a lot. Do you know the differences between Cocos2d and the sparrow framework?

I use the Sparrow framework and find it to mimic the Flash's API more closely, and the API as a whole is less complex. The primary downside at this time is that the community is less active/developed, but the author is very helpful when it comes to answering questions.

Re: iOS Libraries

#47
post #34

Any recommendations for libraries related to user account sign-up / authentication? I'm working on building a multi-player game and want to avoid using Facebook (or another 3rd party) for user authentication.

I can't recommend it, because I haven't used it yet, but OpenFeint works on iOS and Android, if that's important to you. http://www.openfeint.com/

Re: iOS Libraries

#48

I think we blew up "Flurry Analytics"; attempting to register just keeps returning the registration page, with no error messages...

Flurry's registration portal should be able to handle HN traffic without any trouble. I'll e-mail them. EDIT: This looks like a bug, but a bug caused by a user registering with an e-mail already in the system. I'm guessing you've either used Flurry (or Pinch Media, which merged with Flurry) before. Try the 'forgot your password?' link, it'll send you a new one.

You're right, I think I had an account with "Pinch" at one time, but I wasn't getting a "you're already registered" error so I assumed the worst...

...excellent product however and I look forward to using it!

Re: iOS Libraries

#50

This one is of promise. We are evaluating it and trying it out (and sometimes ripping it out). http://restkit.org/ "RestKit is an Objective-C framework for iOS that aims to make interacting with RESTful web services simple, fast and fun. It combines a clean, simple HTTP request/response API with a powerful object mapping system that reduces the amount of code you need to write to get stuff done."

I've played around with it and my team is using it on our current project. I've found it to be a bit rough around the edges. It's still in the process of transforming from an internal resource to a community based open source project, but I think the two toasters crew is very serious about making it work and are doing a great job.

I'd recommend others try it out if you aren't afraid of dipping into their code. I found it to be quite readable and the two toasters team have shown themselves to be very good at communicating with other people interested in the project. My hope is that they will continue to work through the kinks and RestKit can become a standard library for apps dealing with RESTful services.

Post reply on HN