Add your controller as the target for an action of the UIButton, something like this:
Code:
[yourButton addTarget:self action:@selector(yourButtonWasPressed:) forControlEvents:UIControlEventTouchUpInside];
This will have the button call the method yourButtonWasPressed: when the user presses the button.
That method will look like this:
Code:
- (void)yourButtonWasPressed:(id)sender {
//push your view controller here
}
Inside the method, you'll want to push the new controller. How that is done depends on how your project is configured and what type of controller it is.
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.
New app - See screenshots and details at
www.globaclock.com.
If you want to thank me, click the link. Every click counts. If you want to do more, buy my app. A link is available on my website. Thanks.