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


import UIKit

class BookTableViewController: UITableViewController {

    var books: [Book]!
    

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

    }

