ios - How to remove back button from scrollview in Xcode/Swift -


i trying remove automatically generated button scrollview in xcode. thanks.

enter image description here

you using uinavigationcontroller , uiscrollview not have uinavigationbar inside it. need set normal uiviewcontroller or hide button in uinavigationbar in following way:

 self.navigationitem.sethidesbackbutton(true, animated:true) 

or in way :

let backbutton = uibarbuttonitem(title: "", style: uibarbuttonitemstyle.plain, target: navigationcontroller, action: nil) self.navigationitem.leftbarbuttonitem = backbutton 

i hope you.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -