【发布时间】:2011-02-03 22:10:41
【问题描述】:
我正在使用在示例程序中显示为 presentModalViewController 的示例 ViewController。但是,我想在 UIViewController 上使用 pushViewController。问题是当我切换到 pushViewController 时,ViewController no 正确显示。 ViewController 中的函数被调用,但我什么也没看到。我改回 presentModalViewController,一切正常。
问题是我需要做什么才能使 pushViewController 工作?
FCVC *fcVC;
NSArray *array = [[NSBundle mainBundle] loadNibNamed:@"fcVC"
owner:self
options:nil];
fcVC = [array objectAtIndex:0];
A. [self presentModalViewController:fcVC animated:YES]; // “工作”
或
B.[self.navigationController pushViewController:fcVC animated:YES]; //“不起作用
【问题讨论】:
标签: iphone sdk uinavigationcontroller pushviewcontroller