I have searched and searched the forums/internet for an answer to this problem, but all I see is people with the same problems as me.
I have a "View Based Application" which by default already has a ViewController in it. Great, no problems there. I have a couple of buttons in there and a UITableView.
The UITableView is filled correctly filled using the normal techniques and everything is OK till this point.
I created a second NIB and a corresponding UIViewController class. I got the view and class all linked up and ready to go.
So I included the following code in the class of my first UIViewController, which should slide in the next view.
The viewcontroller is instantiated correctly, because when I try to call one of it's methods it actually shows an UIAlertView on top of my first ViewController. The view is just not visible.
What am I doing wrong here? Is this possible to do? Sure I can remove the first UIViewController from the views and add the next, but I just want to add this view and make it modal.
Some help would be great!
I have a "View Based Application" which by default already has a ViewController in it. Great, no problems there. I have a couple of buttons in there and a UITableView.
The UITableView is filled correctly filled using the normal techniques and everything is OK till this point.
I created a second NIB and a corresponding UIViewController class. I got the view and class all linked up and ready to go.
So I included the following code in the class of my first UIViewController, which should slide in the next view.
PHP:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
ReviewsViewController* reviewController = [[ReviewsViewController alloc] initWithNibName:@"ReviewsViewController" bundle:[NSBundle mainBundle]];
[self.navigationController presentModalViewController:reviewController animated:YES];
[reviewController release];
reviewController = nil;
}
The viewcontroller is instantiated correctly, because when I try to call one of it's methods it actually shows an UIAlertView on top of my first ViewController. The view is just not visible.
What am I doing wrong here? Is this possible to do? Sure I can remove the first UIViewController from the views and add the next, but I just want to add this view and make it modal.
Some help would be great!