Bronze Challenge: Points of Interest

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

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.97.157