Xcode 6.1中的StoryBoard问题 [英] StoryBoard issue in Xcode 6.1

查看:134
本文介绍了Xcode 6.1中的StoryBoard问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用故事板在 Xcode 5.1 中成功完成项目,我在 Xcode 6.1中运行项目现在它显示 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. I am getting the error as

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

如何解决此错误并使项目以 64位运行并支持 iOS8

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

希望得到正确答案。

推荐答案

Xcode 6仅支持UITableViewController内部的静态表视图,不再允许使用内部带有静态UITableView的通用UIViewController。

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

要解决此问题,您可以遵循以下两种方式:
- 将所有静态内容放入数组中,声明表委托并加载所有内容运行时。 (最佳解决方案)
- 将静态内容放在UITableViewController中,并在UIViewController中嵌入一个Container View(如果你必须拦截静态表的事件,这将更加棘手)

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)

这篇关于Xcode 6.1中的StoryBoard问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆