9 posts tagged with bug

NSNumberFormatter and Objective-C Types

On a recent project, I ran into some very unexpected behavior with NSNumberFormatter. I was working with an API that delivered price information in cents. The price needed to be displayed in dollars. I decided to store the value in cents to maintain consistency with the API and to use NSNumberFormatter to generate the string for the UI. It seemed like a great solution.

Continue reading “NSNumberFormatter and Objective-C Types” »