Updating location view after enabling GPS
I have used an action sheet button for enabling GPS. After pressing that button, I need a updating location screen to show for some tim开发者_JAVA技巧e so the user knows that it's loading. Please, can anyone guide me on how to do this?
Please go through the location manager tutorial
Assuming you know the details of Delegate Methods of CLLocationManager like
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation{}
You can use UIActivityIndicator Class Reference available to keep user updated about loading process. And For having ready sample about loading process please visit this tutorial.
If you need further help please leave a comment.
精彩评论