-
-
Save gliubc/a4f8eb2411259e9e002bf114d045bcd0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UIScrollView *scrollView = UIScrollView.new; | |
for (UIView *view in [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(Test1VC.class) owner:self options:nil]) { | |
[scrollView addSubview:view]; | |
view.frame = CGRectMake(0, scrollView.contentSize.height, view.frame.size.width, view.frame.size.height); | |
scrollView.contentSize = CGSizeMake(view.frame.size.width, scrollView.contentSize.height + view.frame.size.height); | |
} | |
self.view = scrollView; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment