1

I have looked at the other answers to this question, and none of them have helped.

I have a UIScrollView in my very simple scene, embedded like this:

I use this code to make sure the scroll view will actually scroll, based off of this answer.

-(void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    [self resizeScrollView];
}

- (void) viewDidLayoutSubviews {
    [self resizeScrollView];
}

- (void)resizeScrollView
{
    _scrollView.scrollEnabled = YES;
    [_scrollView setContentSize:_innerView.frame.size];
}

- (IBAction)cameraButtonPressed:(id)sender {
    UIViewController *vc = [UIViewController new];
    [self.navigationController pushViewController:vc animated:YES];
}

The problem is that scrolling doesn't work after I've pushed and popped the new ViewController (Which originally was an image picker btw).

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
michaelsnowden
  • 6,031
  • 2
  • 38
  • 83

1 Answers1

0

I don't know why this worked, but I wrapped everything in another view, and it's perfect now.

dreamzarereal

Community
  • 1
  • 1
michaelsnowden
  • 6,031
  • 2
  • 38
  • 83
  • I am experiencing the exact same problem, unfortunately the fix you propose of adding another UIView behind the ScrollView doesn't seem to work for me..Any other suggestions of things you tried? thanks! – trdavidson Jan 12 '15 at 01:12