Ecommerce Developer
 
 

Platforms & Shopping Carts

Creating a UIScrollView in the iPhone SDK

 

The iPhone SDK UIScrollView class is the best way to show content that is larger than iPhone's viewable area.

Using your finger, you can swipe or pinch the Scroll View to adjust the position of whatever content is inside it, and it can contain anything from images to text fields and buttons.

In this tutorial, I am going to use UIScrollView to view a really big image on a really small screen. I'll start off in Interface Builder and create a container UIView that is big enough to accommodate the width and height of our image. Then I'll drop in our UIScrollView and an image that is 750px-by-550px (much larger than the iPhone screen). Finally, I'll fire up Xcode and add some finishing touches.

By the end of this tutorial, you should understand how and when to use the UIScrollView in your iPhone development.

Download Source Files

Related Articles

0 Comments

Rss-sm