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.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift