NSLengthFormatter uses yards instead of feet in USA by default
| Originator: | greg | ||
| Number: | rdar://17738506 | Date Originated: | 07/19/2014 |
| Status: | Duplicate/16962409 | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.0b3 |
| Classification: | UI/Usability | Reproducible: | n/a |
Summary: The new NSLengthFormatter uses yards instead of feet or fractions of a mile in the USA. The only time I hear yards in the USA is when I watch football. Steps to Reproduce: NSLengthFormatter *lengthFormatter = [NSLengthFormatter new]; NSLog(@"%@", [lengthFormatter stringFromMeters:1]); Expected Results: 3.28 ft Actual Results: 1.094 yd Version: 8.0b3 Notes: When I'm thinking distance, as an American, I think of it terms of miles. In my apps when I've had to format distance in the past, my algorithm reporting anything less than 0.1 mile as feet and anything above as miles. Maybe it's just my opinion and a bad assumption of America, but I think it's worth a discussion internally.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!