here is my code:
ViewController *vc = [[ViewController alloc] initWithNibName:@"TableView" bundle:nil]; [self.navigationController presentModalViewController:vc animated:YES];
If I call it, nothing will happen. However, if I change it to:
ViewController *vc = [[ViewController alloc] initWithNibName:@"TableView" bundle:nil]; //[self.navigationController presentModalViewController:vc animated:YES]; [self setView:[vc view]];
The view looks just fine (no transition, of course). What am I doing wrong? Is there anything special you should take care of when initializing the view controller? I tried to copy as many of the Apple examples as possible, but I can't get this to work ...
Thanks for any input!
- Ry
iphone uiviewcontroller
ryyst
source share