lixiang1994 / LEEAlert

优雅的可自定义 Alert ActionSheet
MIT License
1.3k stars 203 forks source link

求助:类似sheet样式的可输入alert #117

Closed dong136279559 closed 4 years ago

dong136279559 commented 4 years ago
image image

我们的需求是类似sheet的弹框,但是alert样式没有从下方弹出,sheet类型键盘弹出,界面遮挡,请问有什么别的办法吗?

lixiang1994 commented 4 years ago

神奇的需求,你们产品的原创? 这种我建议直接用viewcontroller写,如果非要用我这个,你可以改成alert,然后设置offset调到下面去,再自定义动画,还挺麻烦的,所以我建议直接用viewcontroller写. 如果你有底气可以把这个需求怼回去~哈哈

LEE 邮箱:18611401994@163.com

Signature is customized by Netease Mail Master

在2020年06月14日 18:11,dong136279559 写道:

我们的需求是类似sheet的弹框,但是alert样式没有从下方弹出,sheet类型键盘弹出,界面遮挡,请问有什么别的办法吗?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

dong136279559 commented 4 years ago

怼回去是不太可能了,OK,我用viewcontroller写一下吧。

lixiang1994 commented 4 years ago

嗯嗯,这种非常规需求viewcontroller写起来自由些~

LEE 邮箱:18611401994@163.com

Signature is customized by Netease Mail Master

在2020年06月14日 18:20,dong136279559 写道:

怼回去是不太可能了,OK,我用viewcontroller写一下吧。

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

michael-zhao-pte commented 4 years ago

遇到同样的奇葩需求

lixiang1994 commented 4 years ago

@michael-zhao-pte 那真的不是actionsheet 只是恰巧都在屏幕底部而已啊 🤦‍♂️

michael-zhao-pte commented 4 years ago

@lixiang1994 actionsheet 的输入框被键盘挡住了,这个是什么原因导致的?有什么更好的解决办法吗?

lixiang1994 commented 4 years ago

@michael-zhao-pte actionsheet本身就不支持输入框, 所以我没有做键盘规避的处理. 我还是建议你类似这种需求用ViewController来做会更方便一些

michael-zhao-pte commented 4 years ago

@lixiang1994 好的,谢谢