lixiang1994 / LEEAlert

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

请问show弹窗弹出之后,LeeAlert控件能否拦截下层控制器上的点击事件?现在没有拦截,下层的按钮可以相应点击事件 #174

Closed kelaisile closed 1 year ago

kelaisile commented 1 year ago

请问show弹窗弹出之后,LeeAlert控件能否拦截下层控制器上的点击事件?现在没有拦截,下层的按钮可以相应点击事件

kelaisile commented 1 year ago

.LeePresentation([LEEPresentation viewController:self])//设置leealert层级,层级是self,没有遮住导航栏,已解决

lixiang1994 commented 1 year ago

尝试设置self.navigationController 呢?

kelaisile commented 1 year ago

.LeePresentation([LEEPresentation viewController:self.navigation]?这样吗?

kelaisile commented 1 year ago

我代码中是这样的.LeePresentation([LEEPresentation viewController:self],弹窗弹出来后,导航栏的返回按钮可以点击,需求是弹窗弹出时不能点击

lixiang1994 commented 1 year ago

是的 这个是添加在控制器view上的, 系统导航栏是在view之上的, 如果你需要全屏显示 用window怎么样?

kelaisile commented 1 year ago

用window会出现其它问题,没事了,我这业务端在导航栏已加了限制,功能实现了