ios - Programmatically created back button has no arrow -


in xcode swift project, have view controller has programatically created button left bar button item. text shows up, arrow missing. how add arrow matches other view controllers in project? i'd prefer not have use custom image, if way i'd know how it.

var backbutton = uibarbuttonitem(title: "my list", style: uibarbuttonitemstyle.plain, target: self, action: "goback") self.navigationitem.leftbarbuttonitem = backbutton 

i don't think can.

as seen here , here you'll have create image.

let backbutton = uibarbuttonitem(customview: "yourview") self.navigationitem.leftbarbuttonitem = backbutton 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -