- (void)viewDidLoad
{
[super viewDidLoad];
UIBarButtonItem *barLeftItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(add)];
self.navigationItem.leftBarButtonItem = barLeftItem;
}
两种弹出style
- (void)add
{
//1.push view
TestViewController *tvController = [[TestViewController alloc] init];
//[self.navigationController pushViewController:tvController animated:YES];
//2.model view
[self presentViewController:tvController animated:YES completion:nil];
}
本文深入探讨了iOS开发中的Swift编程语言,分享了实际项目中遇到的问题解决方法及优化策略,包括性能提升、错误排查、代码重构等方面,旨在帮助开发者提高开发效率,构建高质量的应用程序。
886

被折叠的 条评论
为什么被折叠?



