Frage

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?

Keine korrekte Lösung

Andere Tipps

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];
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top