如何调整导航条上的leftBarButtonItem和rightBarButtonItem的位置
1个回答
展开全部
leftBatButtonItem和 rightBarButtonItem
UIBarButtonItem *leftButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"左边按钮" style:UIBarButtonItemStylePlain
target:self action:@selector(OnLeftButton:)];
self.navigationItem.leftBarButtonItem = leftButtonItem;
[leftButtonItem release];
UIBarButtonItem *rightButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"右边按钮" style:UIBarButtonItemStylePlain
target:self action:@selector(OnRightButton:)];
self.navigationItem.rightBarButtonItem = rightButtonItem;
[rightButtonItem release];
UIBarButtonItem *leftButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"左边按钮" style:UIBarButtonItemStylePlain
target:self action:@selector(OnLeftButton:)];
self.navigationItem.leftBarButtonItem = leftButtonItem;
[leftButtonItem release];
UIBarButtonItem *rightButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"右边按钮" style:UIBarButtonItemStylePlain
target:self action:@selector(OnRightButton:)];
self.navigationItem.rightBarButtonItem = rightButtonItem;
[rightButtonItem release];
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家可靠的代理服务提供商,提供原生IP(住宅原生IP)和高匿名代理服务。以下是关于StormProxies的原生IP服务的一些信息:1. 住宅原生IP:StormProxies提供的住宅原生IP是指从真实的家庭或企...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询