Swipe error when using SWRevealViewController and UIScrollView (Swift) -


i have problems when using swrevealviewcontroller , scrollview. created sidebar menu follow instructions below (swift 2.0 & xcode 7.): sidebar menu tutorial swift 2.0

you see following picture:

swrevealviewcontroller conflict uiscrollview

how handler it?. appreciated, thank.

the following code:

@iboutlet weak var scrollview: uiscrollview! @iboutlet weak var menubutton: uibarbuttonitem!  override func viewdidload() {     super.viewdidload()      //revealviewcontroller().delegate = self      //self.scrollview.delegate = self       // additional setup after loading view.      let vc0 = fsmainswipevc(nibname: "fsmainswipevc", bundle: nil)      self.addchildviewcontroller(vc0)     self.scrollview.addsubview(vc0.view)     vc0.didmovetoparentviewcontroller(self)      //----     let vc1 = fsdetailswipevc(nibname: "fsdetailswipevc", bundle:nil)      var frame1 = vc1.view.frame     frame1.origin.x = self.view.frame.size.width     vc1.view.frame = frame1      self.addchildviewcontroller(vc1)     self.scrollview.addsubview(vc1.view)     vc1.didmovetoparentviewcontroller(self)      self.scrollview.contentsize = cgsizemake(self.view.frame.size.width * 2, self.view.frame.size.height - 66);      // additional setup after loading view.     if self.revealviewcontroller() != nil {         menubutton.target = self.revealviewcontroller()         menubutton.action = "revealtoggle:"         self.view.addgesturerecognizer(self.revealviewcontroller().pangesturerecognizer())      }  } 


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -