ios 导航栏怎么添加左右按钮
展开全部
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"LeftBarButton" style:UIBarButtonItemStylePlain target:self action:@selector(tapLeftBarButtonItem)];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"RightBarButton" style:UIBarButtonItemStylePlain target:self action:@selector(tapRightBarButtonItem)];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:@"RightBarButton" style:UIBarButtonItemStylePlain target:self action:@selector(tapRightBarButtonItem)];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询