Created
January 2, 2015 12:26
-
-
Save JigarM/9d89903206cc1525b7ae to your computer and use it in GitHub Desktop.
Load Nib into UIScrollView
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
//Original Post : https://gist.github.com/joshdholtz/1861072 | |
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