ios - How to remove back button from scrollview in Xcode/Swift -
i trying remove automatically generated button scrollview in xcode. thanks.
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
Post a Comment