Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add Gesture Recognizer to headerView? #15

Open
Tinyik opened this issue Feb 27, 2016 · 1 comment
Open

How to add Gesture Recognizer to headerView? #15

Tinyik opened this issue Feb 27, 2016 · 1 comment

Comments

@Tinyik
Copy link

Tinyik commented Feb 27, 2016

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.

@Vinodh-G
Copy link
Owner

Vinodh-G commented Apr 9, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants