Skip to content

Problem with UIScrollView #30

Description

@isayeter

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];

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions