foundationkit / FoundationKit

Everything that really should be in Foundation, but isn't. Future-proof with ARC
Other
80 stars 9 forks source link

+ (NSNumber *)numberWithString: not working anymore on iOS 6.1 #47

Open scheinem opened 11 years ago

scheinem commented 11 years ago

On iOS 6.1 NSNumber's "numberWithString:" category-method returns nil instead of the right NSNumber.

Example:

NSNumber *test = [NSNumber numberWithString:@"14.14"];

On iOS <= 6.0 "test" has the float value "14.14" and on iOS 6.1 "test" is nil.

lowell commented 11 years ago

Weird. Works as advertised on this end.

NSLog(@"%@", [NSNumber numberWithString:@"14.14"]); // => NSNumberAdditionsRunner[20599:c07] 14.14

Xcode 4.6.3 + OS X 10.8.4