custom Location Manager class using CLLocationManager
问题 I'm pretty new to iOS development (my first app) and I faced this issue. I have an iPhone app that should get user's current location in multiple ViewControllers upon user button touch. To prevent redundant code (implementing locationManager:didFailWithError , locationManager:didUpdateToLocation:fromLocation , etc. multiple times in different view controllers) I decided to create a custom class called LocationManager : LocationManager.h @interface LocationManager : NSObject