0

i'm trying to simulate the location with Xcode 4.5 and Iphone Simulator 6.0

i get the localeIdentifier with the following code

NSString *locale = [[NSLocale currentLocale] localeIdentifier];

i try the app on my Iphone and my locale is IT (i'm in Rome)...when i use "Don't Simulate Location" on the Iphone Simulator my locale is US...but with other Simulated Locations i recive always US it doesn't work...Any idea?!...are there some settings to set to use the Simulate location?! thanks

Loralon
  • 191
  • 2
  • 16

1 Answers1

2

To my knowledge NSLocale does not refer to location but rather to language settings etc. See:here

If you want to retrieve the location take a look at this question: How can I get current location from user in iOS

Community
  • 1
  • 1
  • Thanks...i needed only the localIdentifier to send the correct request to Google Shopping Server...it refers to language settings as you sad but it's ok...just have to change the language preference in Iphone simulator ;) – Loralon Jan 31 '13 at 18:44