CoreLocation in 4 Steps (Swift 5)

Опубликовано: 22 Март 2019
на канале: Mobile App Mike
2,025
41

In this video, we'll use CLLocationManager to find our iOS user's location and display their latitude and longitude. We also go over the types of location authorizations and the accuracy of location requests.

Steps:
1) Import CoreLocation, add CLLocationManagerDelegate, & create a “locationManager” constant
2) Add location request description to Info.plist
3) Setup locationManager in viewDidLoad
4) Add didUpdateLocations & didFailWithError functions

Check out the completed project here - and yes I misspelled it on purpose :D - https://github.com/mgm720/CoreLocashun

Wanna chat? Hit me up on Twitter!   / milesoftweets