简体   繁体   English

Xcode 6.1中的StoryBoard问题

[英]StoryBoard issue in Xcode 6.1

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 . 我正在使用故事板成功完成Xcode 5.1的项目的项目,现在正在Xcode 6.1运行该项目,现在它显示了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 如何解决此错误并使项目以64 bit运行并支持iOS8

Hoping for the right answers. 希望找到正确的答案。

Xcode 6 supports static tableviews only inside a UITableViewController, general purpose UIViewController with static UITableView inside are not allowed anymore. Xcode 6仅在UITableViewController内部支持静态表视图,而内部不允许使用带有静态UITableView的通用UIViewController。

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) (最佳解决方案)-将您的静态内容放入UITableViewController中,并在UIViewController中将其与Container View一起嵌入(如果您必须拦截静态表的事件,这将更加棘手)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM