ios - Toggle between rearview and front view in using SWrevealViewcontroller -
buttonhamburger.target = self.revealviewcontroller() buttonhamburger.action = #selector(swrevealviewcontroller.revealtoggle(_:))
this done toggle between rearview , front view when swrevealviewcontroller used, here buttonhamburger uinavigationbarbutton. want remove navigation bar , use button achieve toggle functionality. code :-
here, buttonhamburger uibutton.
buttonhamburger.target(foraction: #selector(swrevealviewcontroller.revealtoggle(_:)), withsender: self)
this doesnot work nothing happens. have tried following also:-
buttonhamburger.actions(fortarget: self.revealviewcontroller(), forcontrolevent: .touchupinside) buttonhamburger.target(foraction: #selector(swrevealviewcontroller.revealtoggle(_:)), withsender: self)
this doesnot work.
what should ? doing wrong?
Comments
Post a Comment