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


import UIKit

class BookTableViewController: UITableViewController {

    var books: [Book]!
    

        performSegueWithIdentifier("newItemSegue", sender: self)
    }
    
    
    func splitViewController(splitViewController: UISplitViewController, collapseSecondaryViewController secondaryViewController: UIViewController, ontoPrimaryViewController primaryViewController: UIViewController) -> Bool {
        return true
    }
}
