gpt4 book ai didi

ios - Xcode 6.1 中的 StoryBoard 问题

转载 作者:行者123 更新时间:2023-11-28 21:54:20 25 4
gpt4 key购买 nike

我的项目已成功完成 Xcode 5.1 中的项目使用 Storyboard,我在 Xcode 6.1 中运行项目现在它在 Xcode 6.1 中显示错误.我得到的错误是

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

如何解决此错误并使项目在 64 bit 中运行并支持iOS8

希望得到正确的答案。

最佳答案

Xcode 6 仅在 UITableViewController 内部支持静态 TableView ,不再允许在内部使用静态 UITableView 的通用 UIViewController。

解决方法有两种:- 将所有静态内容放在数组中,声明一个表委托(delegate)并加载所有内容运行时。 (最佳解决方案)- 将您的静态内容放入 UITableViewController 中,并将其与容器 View 一起嵌入到您的 UIViewController 中(如果您必须拦截静态表的事件,这将更加棘手)

关于ios - Xcode 6.1 中的 StoryBoard 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27125635/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com