-
Notifications
You must be signed in to change notification settings - Fork 558
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
缓存 #18
Comments
1、如果你不想要点击之后,会看到中间的页面。可以直接切换过去,没有中间动画,参考下面:
具体可以看里面的API注解 |
动画省略之后,实际上如果加载完了10个item,应该还是常驻内存的吧?
原始邮件
发件人:暴走的鑫鑫notifications@github.com
收件人:pujiaxin33/JXPagingViewJXPagingView@noreply.github.com
抄送:FaDeve2404445663@qq.com; Authorauthor@noreply.github.com
发送时间:2018年11月9日(周五) 10:10
主题:Re: [pujiaxin33/JXPagingView] 缓存 (#18)
1、如果你不想要点击之后,会看到中间的页面。可以直接切换过去,没有中间动画,参考下面:
你可以实现下面的代理方法进行自定义:
- (void)categoryView:(JXCategoryBaseView *)categoryView contentScrollViewTransitionToIndex:(NSInteger)index
具体可以看里面的API注解
2、关于内存问题
参考这个关于视图全部加载问题
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
是的,中间的item,虽然初始化了,但是没有加载数据,内存消耗不大 |
普通应用还好,如果视频类的,几十个item,且每个页面都比较复杂的,这个时候就要考虑一下内存的优化
原始邮件
发件人:暴走的鑫鑫notifications@github.com
收件人:pujiaxin33/JXPagingViewJXPagingView@noreply.github.com
抄送:FaDeve2404445663@qq.com; Authorauthor@noreply.github.com
发送时间:2018年11月9日(周五) 15:09
主题:Re: [pujiaxin33/JXPagingView] 缓存 (#18)
是的,中间的item,虽然初始化了,但是没有加载数据,内存消耗不大
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
1、一个页面你没有去触发的它的加载,它始终只是一个空壳VC。内存消耗不大。 |
就是说,最开始VC,就只是一个空的VC,不要在viewdidload里面去加载。而是用户滚动到该页面,或者点击滚动到该页面,才触发加载的逻辑。 |
实在担心内存问题。目前只有自己改造一下,只有vc真正出现的时候,才去创建它。我们有这么做,是我觉得,内存应该不会是主要问题。 |
感谢你的反馈,1.0.0版本实现了列表懒加载。等到列表显示的时候,才会真正初始化。欢迎使用最新版本体验!!! |
有五个item,直接点击第五个,会看到中间的界面,如果有很多个item,会不会很占用内存
The text was updated successfully, but these errors were encountered: