ios5 Storyboards: Static Table View & ADBannerView in one scene?

1.3k Views Asked by At

Appreciate any help with this. What I'm trying to do seems like it should be straightforward - I would like to combine a UITableView with static cells and an ADBannerView together in one scene. Unfortunately, if I attempt to use the standard "container" technique to encapsulate the UITableView and ADBannerView (as subviews in a UIViewController's view) together in one view, I receive the following error:

MainStoryboard_iPhone.storyboard: error: Illegal Configuration: Static table views are only valid when embedded in UITableViewController instances.

Any ideas on how I can get this to work? At this point I'm thinking I might have to abandon Storyboards and go back to using Nibs.

Thanks.

1

There are 1 best solutions below

4
On

Have you tried to add a UIView as a header or footer to your UITableView and then drag your ADBannerView into it?