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

android - questions about switching from C2DM to GCM -

rewrite asp to php based on asp query -

visual studio 2010 - Error on RDLC Expression -