When you customize the left button of the navigation bar, the position of the button is shifted to the right, and the workaround is given below.
It also relies on the property settings of the UIButton
Set the left button of the navigation bar
UIButton *leftbutton = [UIButton buttonwithtype:uibuttontypecustom];
Leftbutton.frame = CGRectMake (0, 0, 32, 26);
Leftbutton.imageedgeinsets = Uiedgeinsetsmake (0,-13, 0, 0);//Set the offset position of the button picture (left offset)
[LeftButton setimage:[uiimage imagenamed:@ "Shouye-cehua"] forstate:uicontrolstatenormal];
[LeftButton addtarget:self Action: @selector (handleleftbuttonaction:) forcontrolevents:uicontroleventtouchupinside ];
Self.navigationItem.leftBarButtonItem = [[Uibarbuttonitem alloc] Initwithcustomview:leftbutton];
About customizing the navigation bar Uibarbuttonitem offset