Declaring desiredAccuracy property


Why is it not neccessary to declare and synthesize desiredAccuracy in the .h and .m file? thanks in advance


I assume you’re referring to [color=#BF0000]kCLLocationAccuracyBest[/color]. That variable was predefined in [color=#008000]CLLocation.h[/color] .Importing [color=#008000]<CoreLocation/CoreLocation.h>[/color] framework into our [color=#008000]WhereamiViewController.h[/color] allows us to use it as necessary.

Xcode documents the list of Core Locations’ predefined constants in [color=#BF0000]“Core Location Constants Reference”[/color]. You should be able to find it in Xcode’s Organizer.