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 -

c++ - Qt setGeometry: Unable to set geometry -

batch file - How to extract all multi-volume RAR archives from subfolders of a folder? -