我们都知道,静态单元格只能在SDK内置的 UITableViewController 中使用,如果在程序员自己的ViewController中,静态单元格根本不会显示,甚至于编译器会提示错误信息:“Illegal Configuration: Static table views are only valid when embedded in UITableViewControllerinstances”。
但有没有解决的办法?有!
Container View可以帮助你。
这样在viewcontroller里面embed插入一个tableViewController就解决了!!