Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use a different region notation than the system's region notation

On iOS, an app can use a different language than the system language if the developer passes the NSLocale to the right instances, or else if the proper values are written to NSUserDefault's AppleLanguages key.

I don't seem to find a way to do this also for the region, the part that takes care of number formatting.

The use case here is that I want a UITextfield's DecimalPad keyboard to show a comma for a decimal no matter what the system's region is set to.

Is this possible?

like image 488
Kristof Van Landschoot Avatar asked Apr 05 '16 18:04

Kristof Van Landschoot


People also ask

What is a Type 1 region in calculus?

Type I regions are regions that are bounded by vertical lines x=a and x=b, and curves y=g(x) and y=h(x), where we assume that g(x)<h(x) and a<b. Then we can integrate first over y and then over x:∬Rf(x,y)dA=∫bx=a∫h(x)y=g(x)f(x,y)dydx.


1 Answers

You can use AppleLocale instead of AppleLanguages.

E.g. -AppleLocale nl_BE will set the locale to Dutch with region Belgium.

like image 124
Steven Vandeweghe Avatar answered Nov 15 '22 07:11

Steven Vandeweghe