lixiang1994 / LEEAlert

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

ios 16.1.1 Debug模式正常、 Release 模式无法弹窗 #180

Open J-Innovation opened 1 year ago

J-Innovation commented 1 year ago

如标题所述~~~

J-Innovation commented 1 year ago

研究了一下,不能这么写: LEEBaseConfigModel *config = [LEEAlert alert].config; config.xxxxxx

如果像上面这么写,那么只能够在Debug模式下工作,Release模式将不会有任何反应。

lixiang1994 commented 1 year ago

我用Demo跑了一下 没有问题, 如果你要拆开 需要这么写:

LEEAlertConfig * alert = [LEEAlert alert];
LEEAlertConfigModel * config = alert.config;
config.addXXXXX;
config.addXXXXX;
config.addXXXXX;
config.addXXXXX;
config.addXXXXX;

if (XXXX) {
     config.addXXXXX;
}
for xxx in xxxx {
     config.addXXXXX;
}
config.LeeShow();