I have a use case where essentially I have a image in a customized table view cell. When the user selects the image we want to send them to a Profile page.
Normally, I'd do this by
- (IBAction)userClickedProfilePic:(id)sender {
ProfileViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"Profile"];
vc.postInfo = self.newsfeedData.newsFeedPosts[indexPath.row];
[[self navigationController] pushViewController:vc animated:YES];
}
But self != have a storyboard reference in this case since it's a UITableViewCell class. Is there a way to pop or push a new viewController from a tableviewcell action?