更新时间:2023-01-04 07:57:06
没有特别好的方法可以做到这一点。你***的选择是你必须是UINavigationBar的子类,并覆盖 layoutSubviews
来调用 [super layoutSubviews]
然后找到并重新定位按钮的视图。
There is no particularly good way to do this. Your best bet if you really must is to subclass UINavigationBar, and override layoutSubviews
to call [super layoutSubviews]
and then find and reposition the button's view.