 //        navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .Add, target: self, action: "addItem")
         
         splitViewController?.preferredDisplayMode = .AllVisible
+        splitViewController?.delegate = self
 
     }
 

        performSegueWithIdentifier("newItemSegue", sender: self)
    }
    
}


import UIKit

class BookTableViewController: UITableViewController, UISplitViewControllerDelegate {

    var books: [Book]!
    
