在UIview中重新加载tableview [英] Reload tableview inside a UIview

查看:51
本文介绍了在UIview中重新加载tableview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的表视图位于UI视图内,编写代码已完成,现在我试图在表视图中重新加载数据,但表视图未刷新.

My table view is inside a UI View, this has been done writing codes, now i am trying to reload the data in table view but the table view is not refreshing.

UIview和表视图声明如下:

The UIview and the table view declaration are as follows:

@interface
{
 IBOutlet UITableView *tabView;
}

@property (nonatomic, strong) IBOutlet * tabView
@property (nonatomic, strong) UIView * myView;   // in .m file

推荐答案

如果您已正确链接了委托和表视图的数据源方法,则可以执行以下操作:

Provided you have linked up the delegate and the data source methods of the table view correctly, you could just do :

[self.tableView reloadData];

确保您已完成:

self.tableView.dataSource = self;

这篇关于在UIview中重新加载tableview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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