为什么我的视图不重新加载? [英] Why doesn't my view reload?

查看:68
本文介绍了为什么我的视图不重新加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我在一个视图中的两个搜索栏(是,所有这些)下面都有两个搜索栏,几个按钮和一个tableView.而且,我还有一个导航栏,上面有一个后退按钮.

So I have two search bars, a couple of buttons and a tableView below those (yes, all these) in one view. And I also have a navigation bar on top of it all with a back button.

对于特定操作,我删除了所有搜索栏,按钮,并且在视图中仅显示一个uitableviewcell.

For a particular operation, I remove all search bars, buttons and I display only one uitableviewcell in my view.

如果按编辑键,我希望重新加载整个视图,不仅是tableView,而且还希望该视图具有搜索栏和按钮以及导航屏幕.

If I press edit, I want the whole view to be reloaded, not just the tableView but I want the view to have the search bars and buttons and the navigation screen.

我在edit按钮的IBAction中执行了[self.view reloadInputViews].控件已移至此处,但视图未重新加载.为什么?

I did [self.view reloadInputViews] in the IBAction of the edit button. Control goes here, but the view is just not reloaded. Why?

推荐答案

在将答案发布到StackOverflow之后,我不知道自己如何得到答案.对不起那些麻烦的人(叹气!)

I do not know how I get the answer myself right after posting it here on StackOverflow. Sorry for the trouble guys (sigh!)

我做了[self viewDidLoad];

这篇关于为什么我的视图不重新加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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