PDA

View Full Version : iPhone development Mapkit help




thecreativegeek
Jan 28, 2011, 03:57 PM
hello so i don't know were to post this but i have my app and its using the mapkit i want to be able to press two buttons and have it switch the mapviewtype from standard to satellite then from satellite to standard can anyone out there help me as ive searched high and low for some code and i have no luck
thanks



saving107
Jan 28, 2011, 04:17 PM
hello so i don't know were to post this but i have my app and its using the mapkit i want to be able to press two buttons and have it switch the mapviewtype from standard to satellite then from satellite to standard can anyone out there help me as ive searched high and low for some code and i have no luck
thanks

http://developer.apple.com/devforums/

"The Apple Developer Forums provide a collaborative environment to post development topics and questions for an open discussion with other developers and Apple engineers."

thecreativegeek
Jan 28, 2011, 04:19 PM
http://developer.apple.com/devforums/

"The Apple Developer Forums provide a collaborative environment to post development topics and questions for an open discussion with other developers and Apple engineers."

thanks but im not a paid developer as yet

dejo
Jan 28, 2011, 04:23 PM
hello so i don't know were to post this...

Mod note: Thread has been moved to where you should post it: iPhone/iPad Programming.

thecreativegeek
Jan 28, 2011, 04:25 PM
Mod note: Thread has been moved to where you should post it: iPhone/iPad Programming.

thanks i looked around for that and couldnt see it

cnstoll
Jan 28, 2011, 04:32 PM
You want two things:

1) A UISegmentedControl with two buttons for "Standard" and Satellite"
2) A target method which will be called when the buttons get tapped which will then change the MKMapView's "mapType" property.

http://developer.apple.com/library/ios/#documentation/uikit/reference/UISegmentedControl_Class/Reference/UISegmentedControl.html

http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKMapView_Class/MKMapView/MKMapView.html

thecreativegeek
Jan 28, 2011, 04:40 PM
You want two things:

1) A UISegmentedControl with two buttons for "Standard" and Satellite"
2) A target method which will be called when the buttons get tapped which will then change the MKMapView's "mapType" property.

http://developer.apple.com/library/ios/#documentation/uikit/reference/UISegmentedControl_Class/Reference/UISegmentedControl.html

http://developer.apple.com/library/ios/#documentation/MapKit/Reference/MKMapView_Class/MKMapView/MKMapView.html
thank you very much thats exactly what i need

cnstoll
Jan 28, 2011, 05:20 PM
thank you very much thats exactly what i need

My pleasure.

thecreativegeek
Jan 30, 2011, 03:37 PM
My pleasure.

ive tried that and it doesnt seem to work what code should i be putting in there exactly

dejo
Jan 30, 2011, 03:46 PM
ive tried that and it doesnt seem to work
What did you try, what didn't work? Remember, be specific.