I need to use didSelectRowAtIndexPath
to pass
my current Cell after Searching (this is the only way that I found),
but how can I pass this cell name to the SecondViewController?
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
if(tableView == self.searchDisplayController!.searchResultsTableView){
if let cell: UITableViewCell = tableView.cellForRowAtIndexPath(indexPath){
if let cellTextLabel: UILabel = cell.textLabel{
let cellSelected = cellTextLabel.text!
}
}
}
In the SecondViewController, I need to use the TextView to present the current text to the selected cell.