/ Published in: Objective C

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; scrollView.contentSize = CGSizeMake(self.view.frame.size.width * 3, self.view.frame.size.height); scrollView.contentOffset = CGPointMake(320, 0); scrollView.showsVerticalScrollIndicator = FALSE; scrollView.showsHorizontalScrollIndicator = FALSE; scrollView.pagingEnabled = TRUE; scrollView.backgroundColor = [UIColor blackColor]; scrollView.delegate = self; [self.view addSubview:scrollView]; [scrollView release];
Comments
