PDA

View Full Version : Os 2.0.1 (5b108)




tawpie
Aug 5, 2008, 12:56 PM
was released via iTunes... my app broke (figures!) -- was the SDK updated and I missed it? Anybody else try the new OS?



SwampThingTom
Aug 5, 2008, 02:59 PM
I had no trouble with the new OS update. As far as I know, there is no corresponding SDK update. What broke?

tawpie
Aug 5, 2008, 05:41 PM
I have to go back in time to see if it was "always" broke (take the phone back to 2.0 somehow) but what I discovered that may, upon further investigation, be incidental to 2.0.1 is that NSNumberFormatter seems to take issue with negative numbers if the region is set to India, and seems to have the problem only on the phone -- the simulator is fine. Specifically:

NSString *newNumberString = [numberFormatter stringFromNumber:[NSNumber numberWithDouble:-1234.56]]; crashes to asm icu: DecimalFormat:expandAffix

It works fine for en_US locale and seems to be fine for France French. Works fine with the simulator set to India (Konkani). I haven't been sufficiently retentive in testing other locales as yet.

numberFormatter is set to currencyStyle with maximumFractionDigits at 6.

Still investigating. NSNumberFormatter has been a headache for me...