简体   繁体   中英

SWRevealController in Swift Crashing with Optional,

I am Using SWRevealViewController in my swift project. Its crashing because of Optional value. I am Unable to solve this Issue. Can anybody help me. Thank you. I am adding my source code with FB file from my group. Please Check this.

Project Here Click to download

I downlaod you project , you make mistake with Slide front(this menu items) remove

 @IBOutlet weak var menuButton: UIBarButtonItem!

menuButton.target = self.revealViewController()!
menuButton.action = Selector("revealToggle:") 

slide menu shouldnt has bar item

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM