Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

iOS 5 Development - 20 - Map View (PIN)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
999 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 9, 2011

This part if for the Annotation, or THE PIN!

// SET THE COORDINATES OF YOUR PIN

CLLocationCoordinate2D coordinate; coordinate.latitude = 33.873126; coordinate.longitude = 35.503749; //Create Pin MKPointAnnotation *annotation = [[MKPointAnnotation alloc] init]; [annotation setCoordinate:coordinate]; [annotation setTitle:@"MY HOUSE"];




// ADD YOUR PIN TO THE MAP VIEW [self.mapView addAnnotation:annotation];

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ProgrammingTutor0)

  • Could you post a tutorial on how to integrate my map and pin with the current location of the device? Havn't found anything about that on Youtube yet...

    

  • @Axzeel92 i'm sorry but i'm not uploading iOS tutorials anymore :(

  • Hello, thanks for the tutorial! Could you also make a video to show how i can add a clickable button in the message? That would be great, cause there is no video tutorial about that on youtube yet. Thanks!

  • @KarlssonDeLaRosa,

    I faced the same problem when i was learning about MKMapView too. There are too few tutorials for that.

    Enough with talking , i'll be posting a tutorial about that soon ! ^^

see all

All Comments (5)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more