didUpdateLocation Method Never Called

后端 未结 6 936
南旧
南旧 2021-01-05 10:40

I am making one app on iphone sdk4.0.In that did update location method never called. I have given my code below.Please help.Thanks in advance.

-(id)init
{
          


        
6条回答
  •  遥遥无期
    2021-01-05 10:52

    If you are testing this on the simulator it will not work.

    This happens because that method is only called when the device changes location (and the simulator never changes location).

提交回复
热议问题