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

当 action比较多的时候,以至于屏幕都容不下,应该以tableView的形式展示,让用户可以上下滑动 #2

Open
SPStore opened this issue Oct 12, 2017 · 8 comments

Comments

@SPStore
Copy link

SPStore commented Oct 12, 2017

No description provided.

@LZAscott
Copy link
Owner

我没有考虑很多个action的情况,一般的也不会有很多个吧?

@SPStore
Copy link
Author

SPStore commented Oct 12, 2017

会的,你可以看下系统自带的UIAlertController,系统的是无论多少个action,都是以tableView的形式展示,从层级结构可以看的出来

@LZAscott
Copy link
Owner

恩,我看了下系统的,它是将action放在UIStackView里面,因为我从来没有遇到过有很多个action的情况,所以当时没有考虑到这种情况,感谢反馈

@SPStore
Copy link
Author

SPStore commented Oct 12, 2017

我说错了,系统用的是UIScrollView不是UITableView,系统的层级结构太复杂了,好多看似无用的view

@SPStore
Copy link
Author

SPStore commented Oct 12, 2017

你改起来应该挺简单的,只要把action的父view改成UISCrollView就行了,可以给外界提供一个属性设置scrollView的最大高度,超过这个高度就可以滑动

@LZAscott
Copy link
Owner

好像没有你说的这么简单,还要考虑区分alert和action,现在没时间整这个

@zzn741902332
Copy link

为啥每次都要点2次呢?一次是触发方法,然后还得点击屏幕一次

@LZAscott
Copy link
Owner

没太明白你的意思,你是想触发一次然后自动消失么?

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

3 participants