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

remove swipe in header view #10

Closed
antoinepemeja opened this issue Jun 11, 2014 · 5 comments
Closed

remove swipe in header view #10

antoinepemeja opened this issue Jun 11, 2014 · 5 comments
Labels

Comments

@antoinepemeja
Copy link

It's possible to not consider the swipe in headerview zone ?

@akiroom
Copy link
Owner

akiroom commented Jun 11, 2014

Yes, you can ignore horizontal swipe in header view by the following code.

// MyHeaderView.m

- (id)initWithFrame:(CGRect)frame
{
  if (self = [super initWithFrame:frame]) {
    self.delegate = self;
  }
  return self;
}

- (NSArray *)interactiveSubviewsInStretchableHeaderView:(AXStretchableHeaderView *)stretchableHeaderView
{
  return @[self];
}

@antoinepemeja
Copy link
Author

Ok, I try, but this code not work. I'll investigate. Thx.

@akiroom
Copy link
Owner

akiroom commented Jun 13, 2014

Sorry. I investigated it, and found my bug. I'm going to fix it now.

@akiroom
Copy link
Owner

akiroom commented Jun 13, 2014

I've fixed this bug in the above commit.
From latest ver 0.1.8, you can make non-swipable header view to set nil in AXStretchableHeaderView#delegate.
Please look at AXSampleNoSwipableTabViewController class in example project.

@antoinepemeja
Copy link
Author

Hi, Great for the left and right swipe, but It is unfortunate that the scroll down and up is disabled on the header. Thanks for you fix ;)

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

No branches or pull requests

2 participants