Custom UINavigationBar with custom height causes the UIBarButtonItem's to be positioned wrong

前端 未结 2 1925
礼貌的吻别
礼貌的吻别 2021-01-31 11:49

I created my own subclass of UINavigationBar in order to enable custom background that is taller than 44pxs.

I did it by overriding these two methods:

-(         


        
2条回答
  •  北恋
    北恋 (楼主)
    2021-01-31 12:28

    Try to override layoutSubviews: call [super layoutSubviews] inside and then reposition the items.

提交回复
热议问题