Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UiBarButtonItem without toolbar or navbar

I like the look of the UIBarButtonItem buttons. Is there a way to put these on a screen without using a UINavigationBar or UIToolbar.. so the button are just placed straight onto a view? (or possibly put them onto on nav bar or toolbar whose content is invisible, except for the bar buttons)

like image 267
cannyboy Avatar asked Mar 09 '26 21:03

cannyboy


2 Answers

As they do not inherit from UIView and don't expose a view property (except for those customView based ones), you cannot simply add them onto views out of the box. Also, they might need to "talk back" to their bar container, which would fail anyway. Go with UIButton with custom image.

like image 162
Eiko Avatar answered Mar 11 '26 11:03

Eiko


You cant use Bar button directly on button if you like those button then you can pick the image for same and use that with the round rect or custom button.

like image 33
Ishu Avatar answered Mar 11 '26 09:03

Ishu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!