I have a UIViewController
that contains a custom UITableView
. The table has a custom UITableViewCell
too.
How to navigate from the
UIKit Programmatically TableCell Navigate without storyboard. you have two ways to View next viewController
animating from bottom to top
yourTableView.deselectRow(at: indexPath, animated: true)//used for single Tap
let vC = YourViewController (nibName: "" , bundle : nil)
vC.modalPresentationStyle = .fullScreen //this line is optional for fullscreen
self.present(vC, animated: true , completion: nil)
animate from right to left
yourTableView.deselectRow(at: indexPath, animated: true)
let vC = YourViewController()
self.navigationController?.pushViewController(vC, animated: true)