How to navigate from UIButton to the next page in iphone OR How can i adjust push event against UIButton
<p>I am a fresh student and just joined an iphone programming Software House as an internee. I am new in iphone programming but not in computer programming. I can't figure out how I can use a UIbutton to switch to the next viewcontroller. </p>

<p>My coding is as follows...</p>

<pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (!self.detailViewController) {
        self.detailViewController = [[HelloDetailViewController alloc] initWithNibName:@"HelloDetailViewController" bundle:nil];
    }
    NSDate *object = [_objects objectAtIndex:indexPath.row];
    self.detailViewController.detailItem = object;
    [self.navigationController pushViewController:self.detailViewController animated:YES];

}
</code></pre>
