Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use UIScrollView?

How can I use UIScrollView? please give me a simple example with one scrolling image?

like image 374
M Faheem Rajput Avatar asked May 04 '11 12:05

M Faheem Rajput


People also ask

What is UIScrollView?

UIScrollView is the superclass of several UIKit classes, including UITableView and UITextView . A scroll view is a view with an origin that's adjustable over the content view. It clips the content to its frame, which generally (but not necessarily) coincides with that of the application's main window.

How do I use scroll view on storyboard?

You can scroll the scrollview in the Storyboard / Interface builder! Select the view inside scrollview in Document Outline, then scroll using your mouse or trackpad, you can see the view move. You should see the view controller elongated to 1100 pt height now.


1 Answers

This will get you an insight of the UIScrollView control:

Learning the basics of UIScrollView


Referenced from UIScrollView Tutorials

Some good samples with the basic functionalities covered

  • http://halmueller.wordpress.com/2008/10/08/a-very-simple-uiscrollview-demo/
  • http://developer.apple.com/iphone/library/samplecode/Scrolling/index.html
  • http://www.vimeo.com/1642150
  • http://jonathanwatmough.com/2008/12/implementing-tap-to-zoom-in-uiscrollview-on-an-iphone/
  • http://cocoawithlove.com/2009/01/multiple-virtual-pages-in-uiscrollview.html

Not to mention:

  • https://stackoverflow.com/search?q=UIScrollView
like image 169
Ahmad Kayyali Avatar answered Sep 22 '22 09:09

Ahmad Kayyali