故事板错误与uitableview [英] storyboard error with uitableview

查看:95
本文介绍了故事板错误与uitableview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用故事板创建我的应用程序结构时出现此错误

I am getting this error while trying to create my app structure with story boards


静态表视图仅在嵌入$时有效b $ b UITableViewController实例

static table views are only valid when embedded in UITableViewController instance

我创建了这个带有导航控制器的sotry板,然后是几个分支视图的视图有一个tableview。

I have created this sotry board that has a Navigation controller and then several views that branch off the main view that has a tableview in it.

我从主视图中删除的一个视图有这个错误..我有几个其他视图使用相同的设置但没有他们正在解决这个问题..如果我解决这个问题,那么他们会说同样的话,因为这是我设置的第一个视图..

one of the views that I have made off the main view has this error.. I have several other views with the same set up but none of them are having this issue yet.. im woudnering if I resolve this issue then they will say the same thing after as it was the first view I set up..

任何帮助将不胜感激。

推荐答案

当你说视图时,我假设你的意思是UIViewControllers。对于静态表,您的视图控制器需要(必须是)UITableViewController,它是UIViewController的子类,用于处理表,特别是您的情况下的静态表。

When you say view, I'm assuming you mean UIViewControllers. For static tables, your view controller needs to be (must be) a UITableViewController, which is a subclass of UIViewController that handles tables, specifically static tables in your case.

这篇关于故事板错误与uitableview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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