NSString* formattedNumber = [NSString stringWithFormat:@"%.02f", myFloat];
This came from a great Stackoverflow question here:http://stackoverflow.com/questions/560517/make-a-float-only-show-two-decimal-places
When I'm making lots and lots of model objects from existing applications, I often want to generate Objective-C from JSON or GSON. I use http://tigerbears.com/objectify/ for that.
Trying to figure out some stuff about Apple's in-app purchasing system I learned a lot from reading http://www.raywenderlich.com/2797/introduction-to-in-app-purchases which is an excellent tutorial on an excellent site.
No comments:
Post a Comment