Os 2.0.1 (5b108)

Discussion in 'iOS Programming' started by tawpie, Aug 5, 2008.

  1. macrumors newbie

    Jul 8, 2008
    was released via iTunes... my app broke (figures!) -- was the SDK updated and I missed it? Anybody else try the new OS?
  2. macrumors member

    Jul 12, 2008
    Fairfax, VA
    I had no trouble with the new OS update. As far as I know, there is no corresponding SDK update. What broke?
  3. thread starter macrumors newbie

    Jul 8, 2008
    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...

Share This Page