Reputation: 6851
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.
Upvotes: 2
Views: 7467
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
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
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