-
Notifications
You must be signed in to change notification settings - Fork 12
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
Comments
我没有考虑很多个action的情况,一般的也不会有很多个吧? |
会的,你可以看下系统自带的UIAlertController,系统的是无论多少个action,都是以tableView的形式展示,从层级结构可以看的出来 |
恩,我看了下系统的,它是将action放在UIStackView里面,因为我从来没有遇到过有很多个action的情况,所以当时没有考虑到这种情况,感谢反馈 |
我说错了,系统用的是UIScrollView不是UITableView,系统的层级结构太复杂了,好多看似无用的view |
你改起来应该挺简单的,只要把action的父view改成UISCrollView就行了,可以给外界提供一个属性设置scrollView的最大高度,超过这个高度就可以滑动 |
好像没有你说的这么简单,还要考虑区分alert和action,现在没时间整这个 |
为啥每次都要点2次呢?一次是触发方法,然后还得点击屏幕一次 |
没太明白你的意思,你是想触发一次然后自动消失么? |
No description provided.
The text was updated successfully, but these errors were encountered: