English 中文(简体)
重新装入并显示表格View whitch 是基于主书架的视图
原标题:Reload and display a tableView whitch is based on a view in the MainStoryboard

我从上周开始就一直在寻找上层的解决方案, 但我在互联网上找不到解决方案。所以我想我会在这里寻求帮助。

Now to may question: I have a MainStoryboard and in it a ViewController with a View. On that view I ve put a tableView. ViewController.h

IBOutlet UITableView *tableView
//on bottom
@property (nonatomic, retain) UITableView *tableView;

ViewController.m I ve synthesized it and now I would like to reload and display it while the view is shown. The following things I tested with no result: [tableView reloadData]; [self.tableView reloadData]; [self.tableView setNeedsDisplay]; And if I used [self.view setNeedsDisplay]; I ve got the following Error:

由于未发现例外的 NNS Internatlunitycon一致性Expeption 终止应用程序, 原因 : 无法以捆绑方式装入 NIB : NSBundle <... & gt; (已装入), 名称为 View 管理员 < em @ / em > 第一调用堆栈 : (.) 终止所谓的扔一个例外 (lldb)

没错 没有NIB文件 因为我用过《故事版》

我发现的唯一一件事是, 如果我用一个按钮重新装入在剧目板内视图上的视图, 表格View 就会被重新装入-- 完整地重新装入-- 但这不是解决办法。

我可以在 -( 省略) prepareForSegue: (UIStoryboard *) sesgue 发件人: (id) sender 中做点什么吗? 这个方法我至今只用于一个 popover 。

问题回答

您是否真的连接了接口构建器中的 IB 插件?

Xcode 应该告诉您它是否连接了: 它会在您页眉文件的边边上显示一个小圆, 如果该圆在其中有一个点, 它就会连接, 如果不是, 那么它就不会连接 。

"https://i.sstatic.net/xsr8T.png" alt="Dots"/>

要连接接口构建器中的一个插件, 右拖动与插件( 即您的视图控制器) 连接到您想要连接它到( 您的表格) 上, 当您放行时, 它会为您提供一个菜单, 列出可以选择的插件 。





相关问题
Search Controller is not showing up in TableView Controller

I draged and dropped Search Display Controller onto my TableView Controller. When I push that TableView controller from RootView controller, Search Bar is not showing up on the top of the TableView. I ...

EXC_BAD_ACCESS in tableview application

This is my first iPhone application and it s based on a top-level tableview. Selections of rows either go to another tableview or to a view. The application runs OK on the simulator but when ported to ...

Asynchronous image load into TableView cell

Im trying to load a single image into the grouped table cell. I found a piece of code on the internet and modified it. Original code is using UIViews to display image, which is not what I need, ...

Resizing images on iPhone for UITableView image

I m using a sectioned TableView, and I want to show an image on the left side of the cell. If I pick one from the photo library (out of the example photos in simulator) and set it as UITableViewCell....

Table View rotate, but not properly (shape change)

Here is the thing. I have a ViewController which contain a view in full window. And the program run in landscape mode. I want to put an UITableView over the full screen view but only on right half ...

Customize a data-driven TableView

I have a grouped tableview that is populated with XML data in one section. What I would like to do is create another section prior to the data driven one, and apply an action to it. Example: The ...

iPhone table view - some button/action questions

I created a table view that is populated with a custom UITableViewCell (like this). Each of the cells contains two UIButtons. I assign the action to the button like this: [decreaseButton addTarget:...

热门标签