     }
     
     private func setView() {
-        for content in pageContents {
+        for i in 0..<pageContents.count {
+            let content = pageContents[i]
+//        for content in pageContents {
             let storyboard = UIStoryboard(name: "Page", bundle: nil)
             guard let controller = storyboard.instantiateInitialViewController() as? PageController else {
                 continue
             }
             
             controller.content = content
+            controller.view.tag = i
             self.controllers.append(controller)
         }
         

            }
        }
    }
    
    private func setChapterInfo() {
        let currentIndex = AppUtility.getCurrentPage(bookId: bookInfo.bookId)
        
        var chapterNumber : Int!
        for chapterInfo in chapterInfos {

            return
        }
        
        // ボタンの活性非活性設定.
        settingView.preBtn.isEnabled = chapterNumber != 0
        settingView.nextBtn.isEnabled = chapterNumber != chapterInfos.count - 1
    }
