UITableView模态视图控制器解散后不刷新 [英] UITableView Not refreshing after Modal View Controller dismisses

查看:70
本文介绍了UITableView模态视图控制器解散后不刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的UITable View不会从其数组的数据源刷新,该数组是经过编辑的,但是是Modal视图控制器。

My UITable View does not refresh from its data source of an array, which is edited but the Modal view controller.

我已确认编辑工作正常。

I have confirmed that the editing works fine.

我试过这些,

- (void)viewWillAppear:(BOOL)animated
{
[myTableView reloadData];
NSLog(@"Routines: %@", routines);
NSLog(@"refreshed!");



}

[self.myTableView reloadData]; 

但没有运气,并且正在调用该方法,因为正在记录'刷新!'。

but to no luck, and the method is being called, because 'refreshed!' is being logged.

那么,我做错了什么? IB中的某些东西? Table视图会显示一些初始数据。所以这让我认为委托和数据源工作得很好。所以我完全糊涂了。

So, what am i doing wrong? perhaps something in IB? The Table view does display with some initial data. So this leads me to think that the delegate and the data source works just fine. So im totally confused.

推荐答案

你改变了吗 numberOfRowsInSection

这篇关于UITableView模态视图控制器解散后不刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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