When I run the app with the location set for Italy …
In addition to what just.do.it said…
Be aware that the language in which your app is running is independent (the localisation) of the region (the locale). You set the former with Settings > General > Langauge & Region > iPhone Language and the latter with Settings > General > Langauge & Region > Region. Or, during debugging, the Application Language and Application Region popups in the Options tab in the scheme editor. Most folks have these in sync but it’s possible to set them independently (because that makes sense in certain user scenarios) and it’s easy for you code to make mistakes that only show up in that case.
The enterd vaue doesn't show the separator either in a print() statement.
Be warning that
print
is not locale aware. If you want to render a number in a locale-sensitive fashion, use
NumberFormatter
.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"
WWDC runs Mon, 5 Jun through to Fri, 9 Jun. During that time all of DTS will be at the conference, helping folks out face-to-face. http://developer.apple.com/wwdc/