daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. - (void)viewDidLoad {
  2.     // 2. setup the scrollview for one image and add it to the view controller
  3.     //
  4.     [scrollView setBackgroundColor:[UIColor redColor]];
  5.     [scrollView setCanCancelContentTouches:NO];
  6.     scrollView.clipsToBounds = NO;  // default is NO, we want to restrict drawing within our scrollview
  7.     scrollView.indicatorStyle = UIScrollViewIndicatorStyleWhite;
  8.     //CGRect mainFrame = [[UIScreen mainScreen] applicationFrame]; 
  9.  
  10.     MyView *myView = [[MyView alloc] initWithFrame:CGRectMake(0, 0, 500, 400) ];
  11.     [scrollView addSubview:myView];
  12.     [scrollView setContentSize:CGSizeMake(myView.frame.size.width , myView.frame.size.height )];
  13.    
  14.  
  15. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top