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

container in view controller #5

Open
werne2j opened this issue Sep 23, 2014 · 0 comments
Open

container in view controller #5

werne2j opened this issue Sep 23, 2014 · 0 comments

Comments

@werne2j
Copy link

werne2j commented Sep 23, 2014

When i try to add a a container to the scroll view i get an error.

if (controller.view.superview == nil) {
    CGRect frame = self.scrollView.frame;
    frame.origin.x = frame.size.width * page;
    frame.origin.y = 0;
    controller.view.frame = frame;
    [self.scrollView addSubview:controller.view];
}

error is on the if statement line.

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