Skip to content

Instantly share code, notes, and snippets.

@hudinwal
Created August 15, 2016 16:05
Show Gist options
  • Save hudinwal/52b55eee1c3094a8b07b2d1c6f484f49 to your computer and use it in GitHub Desktop.
Save hudinwal/52b55eee1c3094a8b07b2d1c6f484f49 to your computer and use it in GitHub Desktop.
lazy var moveableImageView: UIImageView = {
let imageView = UIImageView(frame: self.view.frame)
imageView.contentMode = .ScaleAspectFit
imageView.image = UIImage(named: "Image")
imageView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
return imageView
}()
override func viewDidLoad() {
super.viewDidLoad()
//..
// Add the moveableImageView below the table view
self.view.addSubview(moveableImageView)
self.view.addSubview(pullDownTableView)
//..
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment