Adding UIToolbar with two UIBarButtonItem to a UINavigationBar: poor UIToolbar and what about iPhone 4

后端 未结 4 1385
野性不改
野性不改 2021-02-04 16:54

I\'m following the second tip from here. In this tip two UIBarButtonItems are put together in a UIToolbar. Finally, the UIToolbar is added to the UINavigationBar. Now to my prob

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-04 17:33

    There's no guarantee that UIToolbar draws seamlessly inside a UINavigationBar; this might be responsible for the white line you're seeing.

    You might be able to subclass UIToolbar so that it doesn't draw (i.e. override -drawRect: to not do anything).

提交回复
热议问题