Download presentation
Presentation is loading. Please wait.
Published byErika Hortense Fitzgerald Modified over 8 years ago
1
Amolak Nagi
2
“The Core Location framework lets you determine the current location or heading associated with a device.”
3
It can do a lot more than just basic location. “You can also use it to define geographic regions and monitor when the user crosses the boundaries of those regions.”
4
“The Core Location framework lets you determine the current location or heading associated with a device.” It can do a lot more than just basic location. “You can also use it to define geographic regions and monitor when the user crosses the boundaries of those regions.” “you can also define a region around a Bluetooth beacon.”
5
“The Core Location framework lets you determine the current location or heading associated with a device.” It can do a lot more than just basic location. “You can also use it to define geographic regions and monitor when the user crosses the boundaries of those regions.” “you can also define a region around a Bluetooth beacon.” We’re going to focus on just location today.
6
Class associated with recording geographic data. Longitude Latitude Horizontal Accuracy Vertical Accuracy Altitude (this is somewhat new)
7
Class associated with recording geographic data. Longitude Latitude Horizontal Accuracy Vertical Accuracy Altitude (this is somewhat new) Everything managed by a class called CLLocationManager (under a CLLocationManagerDelegate)
8
Class associated with recording geographic data. Longitude Latitude Horizontal Accuracy Vertical Accuracy Altitude (this is somewhat new) Everything managed by a class called CLLocationManager (under a CLLocationManagerDelegate) Has a very important property called CLLocationCoordinate2D, allows location to be pinned on a map
9
Class associated with recording geographic data. Longitude Latitude Horizontal Accuracy Vertical Accuracy Altitude (this is somewhat new) Everything managed by a class called CLLocationManager (under a CLLocationManagerDelegate) Has a very important property called CLLocationCoordinate2D, allows location to be pinned on a map distanceFromLocation(location: CLLocation) could be useful
10
Just like a UIView, but has a geographic map inside of it.
11
By default shows U.S. map and allows you to pan and zoom, but you’ll probably want to set these properties to your liking: showsUserLocation zoomEnabled/scrollEnabled/pitchEnabled/rotateEnabled showsCompass/showsPointsOfInterest/showsBuildings/showsZoomControls
12
Just like a UIView, but has a geographic map inside of it. By default shows U.S. map and allows you to pan and zoom, but you’ll probably want to set these properties to your liking: showsUserLocation zoomEnabled/scrollEnabled/pitchEnabled/rotateEnabled showsCompass/showsPointsOfInterest/showsBuildings/showsZoomControls Can add annotated points of interest onto the map (MKPointAnnotation), which are located by CLLocationCoordinate2D
13
Just like a UIView, but has a geographic map inside of it. By default shows U.S. map and allows you to pan and zoom, but you’ll probably want to set these properties to your liking: showsUserLocation zoomEnabled/scrollEnabled/pitchEnabled/rotateEnabled showsCompass/showsPointsOfInterest/showsBuildings/showsZoomControls Can add annotated points of interest onto the map (MKPointAnnotation), which are located by CLLocationCoordinate2D One annoyance: if you want to zoom into a region you must calculate the region radius and perform the zoom yourself programmatically (MKCoordinateRegionMakeWithDistance())
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.