Location Manager delegate method in swift3
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
}
You must have to add the delegate to the view controller and also implement the above function.You must have to declare and initialize the location manager in the view controller.
You can get the last location the user visited using location manger.
You must have to add the delegate to the view controller and also implement the above function.You must have to declare and initialize the location manager in the view controller.
You can get the last location the user visited using location manger.
Comments
Post a Comment