开发者

Google Map won't load on iPhone simulator

I'm running a test app in the iPhone Simulator to play around with MapKit. I'm using a pretty easy to find program from a tutorial I found via Google. Anyhow, I'm having the same issue as this poster ( 开发者_如何学Gohttps://stackoverflow.com/questions/3667975/google-map-is-not-loading-in-iphone-simulator-can-only-see-the-grid-lines ) such that everything runs but the map is just the default gray grid. I know that the problem is that the simulator isn't connecting to the internet. I'm working at a computer at my university, and so I have to put in my username and password to use the internet (it prompts whenever I open Firefox, Safari, or any other particular program trying to access the internet). I was able to connect to the internet via the simulator's Safari, and it prompted me for a password when it opened.

So, the problem is that the simulator is not prompting me for a password so I can access the internet via my test app. Is there a way to work around this or fix it?


I don't think there is a way around this. Do you have a physical device you can test on?


Unfortunately, this isn't really something you can get around.

Since you're working with the MapKit, you could always try to set it up via UIWebView (which should allow for username/password) access and then translate that to you app. Otherwise, this is good practice for detecting an active network connection and display the appropriate content or lack thereof :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜