         // 現在のページ数を保存する.
         print("index = \(index)")
         if (index > 0) {
-            
             if (preIndex < index) {
                 UserDefaults.standard.set(index - 1, forKey: UDKey.CurrentPage)
             } else {

        }
        
        // 判断在第几章.
        
        for chapterInfo in model.chapterInfos {
            let chapterName = chapterInfo.chapterName
            let startIndex = chapterInfo.startPage
            let endIndex = chapterInfo.endPage
            if (index >= startIndex && index <= endIndex) {
                self.chapterLbl.text = chapterName
                break
            }
        }
        
        let text = model.pageContents[index]
        let imageRect = CGRect(x: 0, y: 0, width: screenWidth, height: screenHeight)

        self.view.bringSubview(toFront: tapView)
    }
    
    private func setChapterInfo(currentIndex: Int) {
        for chapterInfo in model.chapterInfos {
            let chapterName = chapterInfo.chapterName
            let startIndex = chapterInfo.startPage
            let endIndex = chapterInfo.endPage
            
            if (currentIndex >= startIndex && currentIndex <= endIndex) {
                self.chapterLbl.text = chapterName
            }
        }
    }

    // #program mark
    override func numberOfPagesInLeavesView(leavesView: LeavesView) -> Int {
        return model.pageContents.count
