forked from eway2012/SampleCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReadMe.txt
More file actions
51 lines (33 loc) · 2.28 KB
/
ReadMe.txt
File metadata and controls
51 lines (33 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
MapCallouts
===========================================================================
ABSTRACT
Demonstrates the use of the MapKit framework, displaying a map view with custom MKAnnotations each with custom callouts. An annotation object on a map is any object that conforms to the MKAnnotation protocol and is displayed on the screen as a MKAnnotationView. Through the use of the MKAnnotation protocol and MKAnnotationView, this application shows how you can extend annotations with custom strings and left/right calloutAccessoryViews.
===========================================================================
DISCUSSION
This sample implements two different variations of MKPinAnnotationViews each with their own specific information. One shows how to use a rightCalloutAccessoryView with a UIButtonTypeDetailDisclosure button and other with leftCalloutAccessoryView containing an image.
Important:
The MapKit framework uses Google services to provide map data. Use of this class and the associated interfaces binds you to the Google Maps/Google Earth API terms of service. You can find these terms of service mentioned in the header section of "MKMapView.h".
===========================================================================
BUILD REQUIREMENTS
iOS 4.0 SDK or later
===========================================================================
RUNTIME REQUIREMENTS
iPhone OS 3.2 or later
===========================================================================
PACKAGING LIST
AppDelegate
Configures and displays the application window and navigation controller.
MapViewController
The primary view controller containing the MKMapView, adding and removing both MKPinAnnotationViews through its toolbar.
BrideAnnotation
The custom MKAnnotation object representing the Golden Gate Bridge.
SFAnnotation
The custom MKAnnotation object representing the city of San Francisco.
DetailViewController
The detail view controller used for displaying the Golden Gate Bridge.
===========================================================================
CHANGES FROM PREVIOUS VERSIONS
1.2 Updated icons and artwork. Upgraded project to build with the iOS 4 SDK.
1.0 Initial version published.
===========================================================================
Copyright (C) 2010 Apple Inc. All rights reserved.