How to adjust UIToolBar left and right padding

后端 未结 10 556
自闭症患者
自闭症患者 2020-12-02 05:05

I create one UIToolbar with code and another with interface builder. But, found out the two toolbar having different left and right padding which shown below:

From I

10条回答
  •  不知归路
    2020-12-02 05:44

    You can change offset and width of your toolbar, if you want to use customview (initWithCustomView)

    [myToolBar setFrame:CGRectMake(-10, 0, [UIScreen mainScreen].bounds.size.width+10, 44)];
    

提交回复
热议问题