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

最大高度问题? #64

Open
shingohu opened this issue Apr 16, 2018 · 3 comments
Open

最大高度问题? #64

shingohu opened this issue Apr 16, 2018 · 3 comments

Comments

@shingohu
Copy link

因为item个数不定,太多时超出屏幕高度,能否提供api限定view最大高度占屏幕高度的比例

@iTofu
Copy link
Owner

iTofu commented Apr 16, 2018

这两个属性好像满足你的需求:

/**
 If buttons' bottom view can scrolling. Default is NO.
 */
@property (nonatomic, assign, getter=canScrolling) BOOL scrolling;

/**
 Visible buttons' count. You have to set `scrolling = YES` if you want to set it.
 */
@property (nonatomic, assign) CGFloat visibleButtonCount;

@shingohu
Copy link
Author

@iTofu 恩 这个可以解决一部分问题,适配好像有点问题,比如我设置visibleButtonCount = 10 在iphonex上可以完全显示,但是可能小屏上就超出屏幕显示了,需要一个最大高度控制

@shingohu
Copy link
Author

你可以试下item个数很多, visibleButtonCount = 10,部分选项超出了屏幕

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