IOS 视图切换 页面跳转

来源:互联网 发布:注册域名几天可以交易 编辑:程序博客网 时间:2024/04/30 09:14
系统方法:

第一种:直接跳转 动画下切入/切出

跳转:[self presentModalViewController:control animated:YES];

返回:[self dismissModalViewControllerAnimated:YES];

第二种:导航跳转 动画右切入/切出

跳转:[self.navigationController pushViewController:subTableViewController  animated:YES];

返回:[self.navigationController popViewControllerAnimated:YES];

第三种:无动画

[self.view addSubview:<(UIView *)>]

[self.view removeFromSuperview];