开发者

Why xcode 4.2 location simulation does not allow to enter float values for latitude and longitude?

开发者 https://www.devze.com 2023-04-12 14:28 出处:网络
After successful installation of Xcode 4.2 on Snow Leopard, I tried to play with simulator - to play with location simulation. Tried entering custom location values with some float values for latitude

After successful installation of Xcode 4.2 on Snow Leopard, I tried to play with simulator - to play with location simulation. Tried entering custom location values with some float values for latitude (54.913743) an开发者_开发知识库d longitude (23.939154), but the values were truncated when I reopened custom location dialog box.

I was unable to get locationManager:didEnterRegion: called back when simulated using float values. Only worked using decimal (54, 23) values. Does this mean that location simulation works only when simulating location using decimal values?


What locale are you using?.. It works perfectly for me when I use "48,2081743" and "16,3738189" because commas are the standard decimal separators in german..

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号