iPhone SDK Using A UIScrollView Tutorial
Uploader Comments (TannerKilgore1)
Top Comments
-
Best tutorial about UIScrollViews!
All Comments (24)
-
When you setup the ContentSize make sure that it is big enough so the scrolling pages.
- (void)scrollViewDidScroll:(UIS
crollView *)sender { // Update the page when more than 50% of the previous/next page is visible CGFloat pageWidth = self.scrollView.frame.size.wid th; int page = floor((self.scrollView.content Offset.x - pageWidth / 2) / pageWidth) + 1; self.pageControl.currentPage = page; }
-
I changed the background green. What keys to I press to see if the scroll view is active?
-
1. I removed the existing view and created a new view
The new view was resized width=350 and height=900
2. A UIScrollView is added as a subview of the UIView
3. The ScrollView is created as an Outlet IBOutlet UIScrollView *scrollView;
4. In the viewDidLoad [scrollView setScrollEnabled:YES]; [scrollView setContentSize:CGSizeMake(150,
900)]; 5. The UIScrollView connections are: delegate = File Owner, scrollView = File Owner
6. The UIView connection is: view = File Owner
-
This doesn't work when using storyboard, right? cuz i can't get it working :s
-
I was having a difficult time figuring out a few things about UIScrollView that your video cleared up. Awesome video, thanks!!
-
I don't like this video. Useless info > too simple.
-
That is a beautiful desktop!!!
-
Expected '.' before ']' token and Internal compiler error: Bus error..???
-
Thanks man, your tutorial is awesome!
Very helpful guide, thanks. I would recommend adding some zoom during the times that you were writing your code, as the code on the bottom of the screen was sometimes hard to follow. Overall, very nice guide, thanks again.
iP0dTouchAssistant 1 year ago 3
@iP0dTouchAssistant Thank you. When the vid is uploaded its 1080p. Youtube then downsizes it. For the 1080p vid you can download it on my site by clicking the link in the description. Also for more coding tutorials check out my other channel tckdevelopment.
TannerKilgore1 1 year ago