XIB

In this video I demonstrate how to programmatically add several images as subviews to UIScrollView in Swift. In my example I use UIImageView but it can be a custom user interface design ex. XIB file. To learn how to create your own reusable custom user interface files watch this video: Creating custom user interface files…

Read More UIScrollView Programmatically Add UIImageView as SubView. Example in Swift.

In this video I am showing you how to create custom user interface file with XIB in Xcode 6 and how to load it as a Subview programatically as well as using Main.storyboard. Source code of MyCustomView file: import UIKit @IBDesignable class MyCustomView: UIView { @IBOutlet weak var titleLabel: UILabel! @IBOutlet weak var myImage: UIImageView!…

Read More Creating custom user interface files with XIB in Xcode 6 and Swift