Skip to content

Instantly share code, notes, and snippets.

@Alicelovecode
Created July 28, 2017 15:56
Show Gist options
  • Select an option

  • Save Alicelovecode/6c5cee833f1a4ea7debf683392eab6b2 to your computer and use it in GitHub Desktop.

Select an option

Save Alicelovecode/6c5cee833f1a4ea7debf683392eab6b2 to your computer and use it in GitHub Desktop.
book1.swift
import UIKit
class ContentViewController: UIViewController{
var nowPageNumber = 0
@IBOutlet weak var mainImageView: UIImageView!
override func viewDidLoad() {
super.viewDidLoad()
mainImageView.image = UIImage(named:"\(nowPageNumber)")
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment