Current Location in Google Maps with swift

后端 未结 5 939
星月不相逢
星月不相逢 2020-12-17 07:46

I\'m trying to display the user\'s current location on a google map but in the case below, the map doesn\'t even get displayed. What should I change to fix this?



        
5条回答
  •  时光取名叫无心
    2020-12-17 08:14

    It seems that your creation of the map isn't in your viewDidLoad function. You may want to try moving that there and see what happens.

提交回复
热议问题