How to add a UIView above the current UITableViewController

Posted by user558096 on Stack Overflow See other posts from Stack Overflow or by user558096
Published on 2011-01-09T21:18:39Z Indexed on 2011/01/10 0:53 UTC
Read the original article Hit count: 104

I'm have difficulty adding a subview UIView from within the viewDidLoad method of a UITableViewController

This works:

[self.view addSubview:self.progView];

But you can see the table cell lines bleed through the UIView progView.

I've tried this approach:

[self.view.superview insertSubview:self.progView aboveSubview:self.view];

Which is an attempt to add the progView UIView to the superview, above the current view. When I try this I get this the UIView never appears.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c