Comments (3)
- 对列表已经抽象为遵从协议
JXSegmentedListContainerViewListDelegate
的类,所以,没有对列表做什么特殊处理。如果你的列表是VC,那么就不能信赖它的生命周期方法。因为列表只是使用了VC的view而已。如果要实现VC的全生命周期,需要配合beginAppearanceTransition
和endAppearanceTransition
API。因为我对列表进行了抽象,所以就没有做这个操作。 - 因为列表的
listDidAppear
方法,在willMove(toWindow newWindow: UIWindow?)
触发,所以时机有点不太恰当。
基于现在的版本解决你的问题,建议你把最外层的父VC的生命周期方法,通过自定义方法传递给子VC,而不要依赖于listDidAppear
。
from jxsegmentedview.
- 对列表已经抽象为遵从协议
JXSegmentedListContainerViewListDelegate
的类,所以,没有对列表做什么特殊处理。如果你的列表是VC,那么就不能信赖它的生命周期方法。因为列表只是使用了VC的view而已。如果要实现VC的全生命周期,需要配合beginAppearanceTransition
和endAppearanceTransition
API。因为我对列表进行了抽象,所以就没有做这个操作。- 因为列表的
listDidAppear
方法,在willMove(toWindow newWindow: UIWindow?)
触发,所以时机有点不太恰当。基于现在的版本解决你的问题,建议你把最外层的父VC的生命周期方法,通过自定义方法传递给子VC,而不要依赖于
listDidAppear
。
收到,学习了,感谢提供解决思路。
from jxsegmentedview.
后期我会再优化列表的生命周期方法的处理,目前就按照现在的方案就行。
from jxsegmentedview.
Related Issues (20)
- 稳定的crash: 刷新数据+JXSegmentedListContainerView
- 在JXSegmentedListContainerView嵌套多个带tableView的控制器,快速切换滑动时出现cell重叠现象 HOT 1
- UICollectionView和UITableView中存在了左右滑动样式和JXCategoryListContainerView左右滑动切换冲突 HOT 3
- 在子页面上面添加tablview tableview的headview中添加横向滑动的collectionview
- JXSegmentedListContainerViewListDelegate 警告
- 在设置完titleSelectedColor之后,能否再次设置titleSelectedColor HOT 2
- 首次UI出现异常 HOT 1
- -[JXSegmentedView.JXSegmentedView reuseIdentifier]: unrecognized selector sent to instance 0x126720460 HOT 1
- 屏幕翻转时,平均分的SegmentedView,没有自动布局
- 能否在JXSegmentedView.dataSource中加一个基本参数,设置cell的背景色 HOT 1
- BUG:当segmentedView中的dataSource,是从网上回调的调用刷新方法reloadDataWithoutListContainer,会导致页面不展示
- 页面内的h5轮播图左右滑动手势和原生左右滑动切换页面手势冲突问题 HOT 1
- 关于当JXSegmentedCollectionView的ContentSize小于父视图宽度时整体居中的问题 HOT 1
- JXSegmentedListContainerView中加入横向滚动的CollectionView时,右滑手势冲突,无法返回到上一个segment item HOT 1
- 能否创建 Subspecs ? ,我只需要基本功能,想要缩小项目体积 HOT 1
- 怎么刷新指定的ContainerView。页面完成网络请求了,调用reloadData,又要重新请求。 HOT 2
- segmentedView.reloadDataWithoutListContainer 导致没有滚动动画! HOT 1
- 遵循JXPagingViewListViewDelegate协议的view,无法响应collectionview的代理方法 collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)
- 是否可以支持这种效果? HOT 1
- 使用JXSegmentedTitleImageDataSource时,设置titleImageType为leftImage时,maskTitleLabel的位置不对,会与图片重叠
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jxsegmentedview.