Loralon
Loralon

Reputation: 191

Simulated Location Xcode 4.5

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

Upvotes: 0

Views: 257

Answers (1)

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

Upvotes: 2

Related Questions