The final feature that needs to be added to the login screen of the ArtApp application is a label that shows where a user is currently located. Devices such as the iPhone contain a GPS chip that can accurately determine a user's location. Incorporating this into your apps can greatly improve the user experience. However, implementing location services poorly can and will frustrate your users, and could even drain their battery if you're not careful.
Before we add location services to ArtApp, we should explore the CoreLocation framework to see what features it has and how we can efficiently implement it into ArtApp and other applications. Some of the features and examples you will be familiar with are the following:
- Obtaining a user's location
- Geofencing
- Tracking a user while they're moving
Let's dive right in with the basics.