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

Problem with UIScrollView #30

Open
isayeter opened this issue Mar 15, 2015 · 0 comments
Open

Problem with UIScrollView #30

isayeter opened this issue Mar 15, 2015 · 0 comments

Comments

@isayeter
Copy link

When I use a UIScrollView for addParallaxWithView:

It doesn't scroll with the main view.

Any solution ?

UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0,0,320,160)];
scrollView.contentSize = CGSizeMake(320, 170);
scrollView.showsHorizontalScrollIndicator = YES;
scrollView.showsVerticalScrollIndicator = NO;
scrollView.pagingEnabled = true;
scrollView.scrollEnabled = true;
scrollView.backgroundColor = [UIColor blueColor];
scrollView.tag = 9999;
scrollView.delegate = self;


UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Rover.jpg"]];
[imageView setFrame:CGRectMake(0, 0, 320, 160)];
[imageView setContentMode:UIViewContentModeScaleAspectFill];
[scrollView addSubview:imageView];


[_collectionView addParallaxWithView:scrollView andHeight:160];
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

1 participant