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

请问actionsheet的背景颜色能不能改为渐变色? #181

Open
kelaisile opened this issue Mar 3, 2023 · 14 comments
Open

请问actionsheet的背景颜色能不能改为渐变色? #181

kelaisile opened this issue Mar 3, 2023 · 14 comments

Comments

@kelaisile
Copy link

请问actionsheet的背景颜色能不能改为渐变色?
目前来看只能是纯色的,最新版本有渐变色功能吗,谢谢

@lixiang1994
Copy link
Owner

渐变色不行诶, 渐变色是加layer了, 不是color了

@kelaisile
Copy link
Author

可以自定义背景view吗

@lixiang1994
Copy link
Owner

目前不支持

@kelaisile
Copy link
Author

好的

@kelaisile
Copy link
Author

请问,leeAlert弹出后如何获取actionsheet高度?

@lixiang1994
Copy link
Owner

emmm... 外部没法获取, 为啥会有这种需求

@kelaisile
Copy link
Author

我是想在leeAlert后边加一层view,显示渐变色效果,但是这个view的高度要和leealert相同

@kelaisile
Copy link
Author

image

@lixiang1994
Copy link
Owner

这种非常规的需求 我还是建议用ViewController来做, 自由度更高, 强行用Alert这套规则反而适得其反了

@kelaisile
Copy link
Author

好吧

@lixiang1994
Copy link
Owner

如果你想用Alert这套弹出规则, 可以把你的需求全部写在一个View, 将这个View传进来

@kelaisile
Copy link
Author

然后这个view高度再加上alert的偏移量就是alert的高度吧

@kelaisile
Copy link
Author

alert show()之后有回调方法吗?

@kelaisile
Copy link
Author

已解决

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