bar按鈕被粘到y原點上0爲導航欄,x爲0,但我想爲barbutton項目添加一些y位置。導航欄左鍵按鈕上的Barbutton項目被粘到左上conrner
UIBarButtonItem *barbutton;
barbutton = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarButtonItemStyleBordered target:self action:@selector(onbackbtnpressed:)];
[barbutton setWidth:30];
[barbutton setTintColor:KANEKA_BLUE_COLOR];
[barbutton setAccessibilityFrame:CGRectMake(10, 10, 30, 20)];
self.navigationItem.leftBarButtonItem = barbutton;
請告訴我如何設置barbutton框架或如何設置bar按鈕y位置。