     var disposeBag = DisposeBag()
     var bookInfo : LocalBookInfo!
     let model = BookModel()
+    
+    var preIndex = 0
 
     @IBAction func doClose() {
         self.dismiss(animated: true, completion: nil)

            
            // 前回読み込んだページ数を取得する.
            let currentIndex = UserDefaults.standard.integer(forKey: UDKey.CurrentPage)
            
            self?.leavesView.reloadData()
            self?.leavesView.currentPageIndex = currentIndex

                    }
                })
            }
        }.addDisposableTo(disposeBag)
        self.tapView.addGestureRecognizer(recognizer)
        self.view.bringSubview(toFront: tapView)
