I am trying to add a static fixed image to a UITableViewController, but when I do the standard [self.view addSubview:imageView]; the image is placed on the tableview and moves with the scrolling.
Is there any way to do this so that the image stays fixed?
I know one method would be to create a UIViewController, then add the UIImageView and a UITableView, but unfortunately, I am using a custom UITableViewController (just a library found on gihub to do what I needed), so my controller must be a UITableViewController.
Is there any way to do this? I’ve been going at this for a while with no luck.
Cheers,
Brett
There is no problem using
UIViewControlleridea. You just keep 2 view controllers: 1)UIViewController, which has theUIImageViewinside, and subview the view of 2) theUITableViewController. If necessary, make theUITableViewControllera strong reference of theUIViewController.I have done something similar all the time.