![]() | iPhone Region Format affecting map annotations? |
|
16 Jul 2010, 14:42
Ryan (2 posts) |
Hi everyone, I noticed that when a European iPhone user with a Region Format (in iPhone settings>General>International>Region Format) of Germany (or a few other select countries) runs the application the annotations do not appear. I have narrowed this down to being a problem with the way these countries format their numbers. In the US, we use the decimal point: 18.5909 -68.9919 However in some countries they use a comma instead of decimal points: 18,5909 -68,9919 This causes the app problems when trying to map the annotations onto the map because it doesn’t understand the US format (or vice versa). My question is this: What would be the best way to check Region Format of the iPhone user. I would like to check which country the user is set to and then re-direct them to another xml file formatted for them. Can you possibly provide any insight to this? Thanks! Ryan |
|
30 Jul 2010, 09:12
Ryan (2 posts) |
This is how I solved this problem, just checking the actual locale of the iPhone against an array and downloading the correct file based on comma or decimal based system. Something like this:
|
|
02 Aug 2010, 02:02
Bill Dudney (917 posts) |
Hi Ryan, Take a look at the ‘Internationalizing Data on Mac and iPhone’ talk from WWDC 2010, it has a ton of great advice on how to handle this kind of thing. Good luck! |
| You must be logged in to comment |

