From the course: Advanced iOS App Development: MapKit & Core Location

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Introducing Core Location

Introducing Core Location - iOS Tutorial

From the course: Advanced iOS App Development: MapKit & Core Location

Start my 1-month free trial

Introducing Core Location

- [Instructor] Up to this point we've been usin' MAPGET. We've only used Core Location as a type for coordinates. Core Location is a framework unto itself with lots of uses with and without a map. It's most significant is finding the user's location using a variety of hardware in your device. Including wifi, GPS, Bluetooth, Magnetometer, Barometer and cellular hardware. But before you do any coding, you need to decide how you're going to use Core Location. With the simulator still running, tap Command, Shift+H to get to the home screen, and go to Settings. Click Privacy, and Location Services. You need permission from the user for Location Services. We've been ignoring it up to this point, but it's vital once you get someone's actual location. There are two modes, Always On and In Use. For some functions you'll need Always On, which can sit in the background getting your location. It may have extra expense of checking GPS and other hardware frequently, leading to to battery drain…

Contents