UINavigationItem titleView “ignored if leftBarButtonItem is set”?

前端 未结 5 582
情话喂你
情话喂你 2020-12-10 14:09

The documentation for UINavigationItem\'s titleView property says:

\"This property is ignored if leftBarButtonItem is not ni

5条回答
  •  轮回少年
    2020-12-10 14:48

    Check the documentation for property leftBarButtonItems, it says:

    If there is not enough room to display all of the items in the array, those that would overlap the title view (if present) or the buttons on the right side of the bar are not displayed.

    So, what's said for titleView is probably incorrect.

提交回复
热议问题