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

自定义DataSource 和Cell #208

Closed
wtdu opened this issue May 30, 2022 · 1 comment
Closed

自定义DataSource 和Cell #208

wtdu opened this issue May 30, 2022 · 1 comment

Comments

@wtdu
Copy link

wtdu commented May 30, 2022

作者你好,我在使用您的库自定义segment 样式,目前遇到一个问题,能否在JXSegmentedView 中增加一个属性,可以自定义控制JXSegmentedView中 collectionView 的cell 的高度,我看目前是直接写死为collectionView.bounds.size.height (如下图)

Screen Shot 2022-05-30 at 6 53 14 PM

备注:我有这个想法,是因为我在自定义segmentedView 样式的时候,需要cell 上下左右边界都需要边距,但是目前由于高度固定,无法实现,在外层重写JXSegmentedView.collectionView.collectionFlowLayout.sectionInset 无效,sdk 内部重写了delegate 方法

@wtdu
Copy link
Author

wtdu commented May 31, 2022

重写JXSegmentedView 就行

@wtdu wtdu closed this as completed May 31, 2022
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

1 participant