SyntaxFix
Write A Post
Hire A Developer
Questions
For strings starting with integers, e.g., @"123", @"456 ft", @"7.89", etc., use -[NSString integerValue].
@"123"
@"456 ft"
@"7.89"
-[NSString integerValue]
So, @([@"12.8 lbs" integerValue]) is like doing [NSNumber numberWithInteger:12].
@([@"12.8 lbs" integerValue])
[NSNumber numberWithInteger:12]