             let startIndex = chapterInfo.startPage
             let endIndex = chapterInfo.endPage
             
+            print("\(chapterName) : startIndex = \(startIndex), endIndex = \(endIndex)")
+            
             if (currentIndex >= startIndex && currentIndex <= endIndex) {
-                self.settingView.chapterLbl.text = chapterName
+                settingView.chapterLbl.text = chapterName
                 chapterNumber = chapterInfo.chapterNumber
                 
                 // slideの内容を設定する.


extension BookController : UIPageViewControllerDelegate {
    func pageViewController(_ pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool) {
        print("finish change page.")
    }
}


    }
    
    private func setView() {
        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)
        }
        
