Want to create a cool static UI but : "Static table views are only valid..."

Cehm picture Cehm · Feb 14, 2012 · Viewed 40.5k times · Source

I'm creating a view like:

enter image description here

For this I'm trying to use a Storyboard in which I add 2 TableViews (both as 'Static Cells') and then I manually add my Cell content directly from the storyboard...

In my storyboard it looks great but when I build I get:

en.lproj/MainStoryboard.storyboard: error: Illegal Configuration: Static table views are only valid when embedded in UITableViewController instances

How can I fix this error?

Answer

juanignaciosl picture juanignaciosl · Jan 22, 2013

I've also ran into an issue when changing an existing custom view controller, making it extends UITableViewController. XCode isn't smart enough and won't realize it already fits its requirements.

You can solve this problem by editing storyboard source code and changing <viewController ... to <tableViewController....

Original source: https://plus.google.com/108665969482300807329/posts/J4mCASMA3pZ