火星人驾到

Iphone 视图跳转方法总结

1. AddInfo *control = [[AddInfo alloc] init];

  [self presentModalViewController:control animated:YES];

  [control release];

  描述:通过事件进行跳转

  [self dismissModalViewControllerAnimated:YES];

  描述:通过事件进行返回。

  2. [self.navigationController pushViewController:subTableViewController animated:YES];

  描述:通过 NSNavigationBar 进行跳转

  [self.navigationController popViewControllerAnimated:YES];

  描述:在子视图返回到上级视图

posted on 2011-05-21 16:28  火星人驾到  阅读(505)  评论(0编辑  收藏  举报