Using UITableviewcell
class for displaying the cell of table list. I want to redirect from one screen to another using "navigationController?.pushViewController
", but it is not supporting in table cell class. So how can i move UIViewcontroller
using pushViewController from table cell.
My code is:
class TableCell: UITableViewCell
{
let storyBoard : UIStoryboard = UIStoryboard(name: "SubMain", bundle:nil)
let nextViewController = storyBoard.instantiateViewController(withIdentifier: "DetailReport") as! DetailReport
nextViewController.aryOfResultList = aryForCreateJSONResult
cell.inputViewController?.navigationController?.pushViewController(nextViewController, animated: true)
}
But its not working. Please give me the solution of my question