April 2020
Intermediate to advanced
528 pages
15h 40m
English
Add a UILabel and UISwitch to the MapViewController interface. The label should say Points of Interest and the switch should toggle the display of points of interest on the map (Figure 5.7). You will want to add a target-action pair to the switch that updates the map’s pointOfInterestFilter property.
Figure 5.7 Toggling points of interest
You may need to zoom in a bit before points of interest are visible. To zoom in on the simulator, hold down the Option key. Two small circles will appear on the simulator screen, representing fingers. Click and drag the virtual fingers apart to zoom in. ...
Read now
Unlock full access