ParallaxTableViewHeader icon indicating copy to clipboard operation
ParallaxTableViewHeader copied to clipboard

How to add Gesture Recognizer to headerView?

Open Tinyik opened this issue 8 years ago • 1 comments

I tried adding gestureRecognizer directly to headerView but not working, so I also tried:

` let headerImageView = UIImageView(frame: CGRectMake(0, 0, UIScreen.mainScreen().bounds.width, UIScreen.mainScreen().bounds.width*0.667))

    headerImageView.image = headerImage

    headerImageView.userInteractionEnabled = true

    let tap = UIGestureRecognizer(target: self, action: "showOrgIntroView")

    headerImageView.addGestureRecognizer(tap)

    let headerView = ParallaxHeaderView.parallaxHeaderViewWithSubView(headerImageView) as! ParallaxHeaderView

    self.tableView.tableHeaderView = headerView`

But it still doesn't work either.

Tinyik avatar Feb 27 '16 16:02 Tinyik

screen shot 2016-04-09 at 11 53 52 pm

@Tinyik I was able to add gesture and use, I have added the gesture as show above.

Vinodh-G avatar Apr 09 '16 18:04 Vinodh-G