Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create UIBarButtonItem with back button style

I'm looking for a way to create programmatically an UIBarButtonItem that looks like a back button of UINavigationBar. Apparently seems like that the back button appears only after a push on the UINavigationController.

enter image description here

So I'm able to insert only a button with the "cancel" style. But my goal is to create a button with the "New Item" style.

Ideas ?

like image 382
Fry Avatar asked Mar 18 '26 07:03

Fry


1 Answers

the short answer is you cannot do it.

you can save an image and you can put the image to that position, but the back button is managed by private part of the UINavigationBar.

like image 51
holex Avatar answered Mar 20 '26 20:03

holex



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!