searchDisplayController, UITableView, Core Data and Swift
问题 Trying to search in the table with searchDisplayController . Data filtering configured, the search dialog works. Now I want to work with a method prepareForSegue for send current value indexPath to a new UIViewController : import UIKit import CoreData class MainTableViewController: UITableViewController { var results:AddrBook[]=[] var searchResults:AddrBook[]=[] init(style: UITableViewStyle) { super.init(style: style) } init(coder aDecoder: NSCoder!) { super.init(coder: aDecoder) } override