title: Pushing detail controller from cell of programatically created UITableView inside another view controller
body: <p>I have a custom UIViewController that we'll just call ViewController. I'm using <a href="https://github.com/AdityaDeshmane/iOSCustomPageControl" rel="nofollow noreferrer">this</a> library to have a  view controller effect where one can slide left and right between pages. My pages are a programmatically created UITableView subclass. To be more specific, each page is a Day and the title of the page is the day of the week, and the cells in the UITableView subclass are events for that day. </p>
  
  <p>I want to push to a new view controller when I touch one of these cells but I'm stuck. I want to push to a view controller that I've created in my storyboard and pass an object through that push that populates the view controller. My navigation controller I use in ViewController is created in storyboard. The custom UITableView is created programmatically. </p>
  
  <p>Some errors I've been getting: </p>
  
  <p>-- Application tried to push a nil view controller on target .</p>
  
  <p>-- And also self.navigationController is nil. </p>
  
  <p>I have no idea how to do this and there doesn't seem to be any helpful answer out there. I'm completely stuck. I've attached an image of my ViewController, and if you check out the linked GitHub repo you can see how I'm using the provided code there. </p>
  
  <p><a href="https://i.stack.imgur.com/XVLfd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XVLfd.png" alt="enter image description here"></a></p>