Hinchy
Hinchy

Reputation: 683

Add button to map in ios application

I'm currently working on an app that utilizes maps. One feature I'd like to implant is to have a full screen map with a button/handle on the side that would allow a user navigate between screens. See the example from runkeeper below: enter image description here

Would anyone have any insight/idea where to begin with this? I'm even having a tough time finding appropriate google keywords.

Upvotes: 0

Views: 758

Answers (2)

Rajneesh071
Rajneesh071

Reputation: 31081

Just add your button to your view after adding mapView(over your map view).

Upvotes: 1

Med Hajlaoui
Med Hajlaoui

Reputation: 169

You have to create an new iOS project. In the info.plist set UIStatusBarHidden to YES. In your map view add

self.navigationController.navigationBar.hidden = YES;

In the method that handle the button event add:

-(IBAction)buttonPressed {
     NewViewcontroller *newViewC = [[NewViewController alloc] init];
     [self.navigationController pushNavigationController: newViewC animated: YES];
     [newViewC release];
}

Upvotes: 0

Related Questions