Obtain the geographic location and orientation of a device.
- iOS 2.0+
- macOS 10.6+
- tvOS 9.0+
- watchOS 2.0+
The Core Location framework provides services for determining a device’s geographic location, altitude, orientation, or position relative to a nearby iBeacon. The framework uses all available onboard hardware, including Wi-Fi, GPS, Bluetooth, magnetometer, barometer, and cellular hardware to gather data.
After requesting permission and determining whether services are available, you start most services using the
CLLocation object and receive the results in your associated delegate object.