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

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

        }
        
        context.draw(cgImage, in: imageRect)
        
        preIndex = index
    }
}
