![]() This specifies the size of the scrollable area. You must set the contentSize property to the size of the scrollable content.There are only two additional steps required to complete the scroll view configuration: ![]() After that, only a small amount of additional configuration is required to achieve basic scrolling capabilities.Ī scroll view is created and inserted into a controller or view hierarchy like any other view. Scroll views are created as any other view is, either programmatically or in Interface Builder. ![]() In this tutorial, we’ll look at various aspects of UIScrollView, specifically, creating a scroll view programmatically and in Interface Builder, scrolling and zooming, working with insets and nested scroll views.īefore reading on, first download the resource file for the project which contains files we’ll use in the tutorial. To let users zoom in to or out of the displayed content using the pinch gesturesĪ common control used in iOS apps – UITableView – is a subclass of UIScrollView and provides a great way to view content that is larger than the screen.To let users drag the area of the content they want to display.In iOS, scroll views are used to view content that won’t fit entirely on the screen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |