ios - Xcode: My user location doesn't show the first time I run the simulation but the second time it does -


whenever first open project , hit build , run first time app won't focus on current user location. if stop simulation , build again , run it, focus on user location want to. can't figure out why this, wrong simulator or wrong code?

super viewdidload]; self.mapview.showsuserlocation = yes; self.mapview.delegate = self; [self.mapview setusertrackingmode:mkusertrackingmodefollow animated:yes]; 

did try debug->location service ? try this


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -