Alexander Khitev
Alexander Khitev

Reputation: 6851

How to make a arrow in UIBarButtonItem like back button arrow in swift

How to make a arrow in custom UIBarButtonItem like back buttom arrow in the Swift? I want to move via previous controller and I make custom UIBarButtonController but it has not arrow.

enter image description here

Upvotes: 2

Views: 7467

Answers (3)

SpaceX
SpaceX

Reputation: 2890

Custom Back Button

For those of you are here to make a custom back button, check this similar SO answer which works perfectly.

Upvotes: 0

baydi
baydi

Reputation: 1003

U can use Attributed String and assign it to your UIButton Use this string

var str = "< Playlist Table"

Use this tutorial for further detail http://www.ioscreator.com/tutorials/attributed-strings-tutorial-ios8-swift

It will Help.ThankYou

Upvotes: 3

user5300943
user5300943

Reputation: 1

If you have a navigation controller, this should appear automatically when you move from ViewController A to B.

To change the text "Playlist Table" in controller B, you need to set it on controller A.

Upvotes: -1

Related Questions