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

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -