         }
         
         scrollView.contentSize = CGSizeMake(pageWidth, pageHeight * CGFloat(totalPages))
+    }
+    
+    override func viewDidAppear(animated: Bool) {
+        super.viewDidAppear(animated)
+        
+        delegate.readerDidAppear()
     }
 
     override func didReceiveMemoryWarning() {

    var pageHeight: CGFloat!
    var screenBounds: CGRect!
    var currentPage: FolioReaderPage!
    
    // MARK: - View life cicle
    
    override func viewDidLoad() {
        super.viewDidLoad()

        let pages = ["Page 1", "Page 2", "Page 3", "Page 4", "Page 5"]
        
        screenBounds = UIScreen.mainScreen().bounds
        setPageSize(UIApplication.sharedApplication().statusBarOrientation)

//

import UIKit

protocol FolioReaderViewControllerDelegate {
    func readerDidAppear()
}

class FolioReaderViewController: UIViewController {

