Created
February 18, 2012 21:35
-
-
Save joshdholtz/1861072 to your computer and use it in GitHub Desktop.
Load Nib into UIScrollView
This file contains hidden or 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
NSArray *nibContents = [[NSBundle mainBundle] loadNibNamed:@"AddNewProductScrollView" owner:self options:nil]; | |
UIView *myView = [nibContents objectAtIndex:0]; | |
[scrollView addSubview: myView]; | |
[scrollView setContentSize:CGSizeMake(myView.frame.size.width, myView.frame.size.height)]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment