yue1liang1chuan 2013-01-30 06:47 采纳率: 0%
浏览 1993
已采纳

iphone-弹出一个view后再推出一个view

有一个在导航推的view,我在button中加了下面代码:

[self.navigationController popViewControllerAnimated:YES];
    FreeStuffViewController * freeStuffVC=[[FreeStuffViewController   alloc]initWithNibName:@"FreeStuffViewController" bundle:nil];
    [self.navigationController pushViewController:freeStuffVC animated:YES];
    [freeStuffVC release];

运行之后,只能弹出一个view,接下来推出的FreeStuffVc没出现,请帮忙解决,谢谢。

  • 写回答

2条回答 默认 最新

  • abcdeFGh_xyz 2013-01-30 09:19
    关注
        UINavigationController *local = [[UINavigationController alloc]init];
        [local popViewControllerAnimated:NO];
        newView *nr=[[newView alloc]init];
        [self.navigationController pushViewController:nr animated:YES];
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?