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

后端 未结 4 1430
野性不改
野性不改 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条回答
  •  萌比男神i
    2021-02-04 17:32

    1) I can't explain the white line. Curious that it's only above your buttons. How are the buttons created? Also, is there a reason you're setting the height to 44.01, rather than just 44? I'm not positive that the height you set is honored in any case, they may be forced to 44 (someone correct me if I'm wrong).

    2) You don't have to do anything for iPhone 4, everything is scaled automatically.

提交回复
热议问题