views:

19

answers:

2

Hi friends...
I have navigationController in my appdelegate class
& passing a viewController(RootViewController) in it.
In RootViewController i m using a custom UItableViewCell.
In the UITableViewCell class i have a UIButton.
on button click i want to navigate to some other page(sampleViewController)
so on button click i m using

-(void)btnClick
{
[self.viewController presentModelViewController:sampleViewController animated:YES];

}

but this does't navigate to sampleViewController.
where i'm making a mistake?
Please help/suggest me friens for the above.

+1  A: 

Possibly just a simple typo - the correct method name is presentModalViewController:animated: (Modal, not Model)

Simon Whitaker
NO Simon this is not the problem. The problem is that when i print NSLog(@"%@",sampleViewController.view) it's giving null.
A: 

Did you connect your button's onTouchUp event? Is the button being called?

David Nelson