Working with PageControl and UIScrollViews! (Swift 4 in Xcode 9)

Опубликовано: 20 Май 2026
на канале: Don Sirivat
29,796
425

Today we will be working with ScrollViews and PageControl and see how we can implement them into our very own iOS applications.

~TL;DW~
Steps:
1. Drag PageControl and ScrollView onto Storyboard
2. Create IBOutlets in ViewController.swift
3. Import images into assets
4. Create images array and initialize empty frame
5. Align ScrollView and set ContentSize
6. Conform to UIScrollViewDelegate
7. Create didEndDecelerating Method
8. Check Paging Enabled

~Social Stuff~
Facebook -   / don.sirivat  
Instagram - donsirivat
Email - [email protected]