ios - Doesn't Show Current location on google map? -
i using google map sdk version 1.9.1.
i want display map current location .
here code.
@interface viewcontroller () { gmsmapview *mapview_; } - (void)viewdidload { [super viewdidload]; mapview_ = [gmsmapview mapwithframe:cgrectmake(0.0f, 100.0f, 320.0f, 300.0f) camera:nil]; mapview_.mylocationenabled = yes; [self.view addsubview: mapview_]; }
but can't display current location. appreciate help.
you must set location in
debug>location>custom lacation
like
if can test in device enable location in setting screen
Comments
Post a Comment