StoryBoard issue in Xcode 6.1

醉酒当歌 提交于 2019-12-13 04:48:40

问题


I am having the project which is successfully done the project in Xcode 5.1 using story board, I am running the project in Xcode 6.1 now its showing the error in Xcode 6.1. I am getting the error as

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

How to resolve this error and make the project run in 64 bit and support to iOS8

Hoping for the right answers.


回答1:


Xcode 6 supports static tableviews only inside a UITableViewController, general purpose UIViewController with static UITableView inside are not allowed anymore.

To resolve you can follow 2 ways: - put all the static content inside arrays, declare a table delegate and load all the content runtime. (Best solution) - Put your static content inside a UITableViewController and embed it with a Container View inside your UIViewController (this will be more tricky if you have to intercept events of static table)



来源:https://stackoverflow.com/questions/27125635/storyboard-issue-in-xcode-6-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!