Have you trie the following?
[self.view insertSubview:self.adBanner aboveSubview:yourTableview];
Question
I created a UIView
which I want to display over my UITableView
.
I add it by adding to the current view: [self.view addSubview:self.adBanner];
When I scroll
the section headers
will hover over top of this view
.
Am I adding the view
over table correctly or should I be adding it to a different view
?
No correct solution
OTHER TIPS
Have you trie the following?
[self.view insertSubview:self.adBanner aboveSubview:yourTableview];
Import quartzCore and set z-index of table view to -100 as given code below:-
#import <QuartzCore/QuartzCore.h>
[tableView.layer setZPosition:-100];