Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提个问题 #2

Closed
bluesea opened this issue Jun 19, 2015 · 3 comments
Closed

提个问题 #2

bluesea opened this issue Jun 19, 2015 · 3 comments

Comments

@bluesea
Copy link

bluesea commented Jun 19, 2015

每次都会把之前的ViewController给destroy掉,然后再次查看,重新进入viewdidload。都是些本地数据的话,不影响,但如果是通过网络获取数据或者是之前的viewcontroller内有输入框(处于编辑状态),这样的情况,重新加载整个视图,我觉得不是很合理~

@wangmchn
Copy link
Owner

之前的想法是 对于这一系列数据进行本地保存。在viewDidload里面判断是从网络下载还是本地加载。
如果不释放控制器的话,我怕控制器一多引起内存问题。现在还没有良好的解决想法,如果有的话还希望告知改善。

在 2015年6月19日,09:16,bluesea [email protected] 写道:

每次都会把之前的ViewController给destroy掉,然后再次查看,重新进入viewdidload。都是些本地数据的话,不影响,但如果是通过网络获取数据或者是之前的viewcontroller内有输入框(处于编辑状态),这样的情况,重新加载整个视图,我觉得不是很合理~


Reply to this email directly or view it on GitHub.

@bluesea
Copy link
Author

bluesea commented Jun 19, 2015

@wangmchn
Copy link
Owner

wangmchn commented Aug 5, 2015

已有缓存了~回复晚了抱歉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants