objective-c source locationManager out in own class
问题 I want to source the locationManager out in an own class that I can call from different other classes. What I did. Created an iPhone Application, and added the locationManger code in the ViewController. Worked. Now I created a class Lokation where I shifted all locationManager Code to this new class and called that code from the ViewController. Result: The function getLocation is called but locationmanager:manager didUpdateToLocation:newLocation fromLocation:oldLocation is not called. Output