0
我有一个左栏按钮项目。但我希望它能够更多地向右移动。此刻它粘在左手边。任何机构都有一个想法,我怎么能做到这一点?向左移动barbutton项目向右移动
这是我的按钮本身的代码。
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setBackgroundImage:[UIImage imageNamed:@"task_status.png"] forState:UIControlStateNormal];
[button addTarget:self action:@selector(changeStatus:) forControlEvents:UIControlEventTouchUpInside];
[button setFrame:CGRectMake(80, 0,100, 18)];
self.tabBarController.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithCustomView:button];
希望任何人能帮我这个。
亲切的问候
为我工作!谢谢 – Steaphann