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

iOS 5 Development - 22 - Map View (Disclosure Button)

Loading...

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

Uploaded by on Dec 22, 2011

I couldn't add the code under this video! I'll try to add as a comment!
So get the code from this link
http://www.4shared.com/office/HyZpEGy4/ios5-22-MKMapView.html
--------------------------------------------------------------------------------­--------------------
This will allow you to open up safari when the button is pressed:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.google.co.uk"]];

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ProgrammingTutor0)

  • @shuriquen thank you so much for this helpful advice !! ًI'll consider it for my new tutorials..

  • Why did you have to add MKMapViewDelegate to the interface and then add it to the main view control?

  • @iamthejuggler delegate is used to be able to implement the method for when the disclosure button is pressed "the method that contains callout.."

  • Great Video, one question though.

    Is there anyway to display the entire an address without reducing the size of the map?

    Thanks..keep up the good work

  • @ThePitifulmaestro , your question is not clear enough, but do u mean displaying the pin on the whole WORLD MAP without zooming in to a specific place?

    example: I have the world map in front of me, then a pin drops on a certain location?

    Here's the solution:

    Go google maps and copy my previous video steps but this time to get Center & Span of the world map.. modify them in your code.. and there you go!

see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • Excellent video, I'm doing my first steps on iOS development and your videos are a great source of knowledge!, by the way you can use the Pastie service to paste the code in the videos, it supports the Objective-c syntax as well, check it out in pastie.org

  • Thanks a lot! Is there anyway to annotate an entire address?

    Example: - You have MY HOUSE and address underneath it.

    My House

    Address line 1

    Address line 2

    Address line 3

    Address line 4

    Phone number

    Thanks again

  • @KarlssonDeLaRosa Great to heart that :D!

  • @ProgrammingTutor0 Thanks a lot Dani! It solved my problem. Yes, I'm from Sweden! :-)

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