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

python - argument must be rect style object - Pygame -

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

c# - Better 64-bit byte array hash -