Displaying Map ONLY when the button is clicked in Xcode

Posted by Susanth on Stack Overflow See other posts from Stack Overflow or by Susanth
Published on 2010-06-01T04:16:06Z Indexed on 2010/06/01 5:13 UTC
Read the original article Hit count: 223

Filed under:
|
|
|
|

Hi,

I am developing an iPhone application using XCode and I am kinda stuck with the functionality described in the subject of this post.

I want the map(using MapKit) to only load and display after I click a button. So, what code should I have under that my "(IBAction) showMap" function?

Whatever I could find online talks about unhiding the map. I want to only load the map when a button is clicked rather than loading the map in the background and simply unhiding it the click of the the button. Thanks !

~Susanth

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode