当前位置: 代码迷 >> 综合 >> ios 尽量用 [UIApplication sharedApplication].delegate.window
  详细解决方案

ios 尽量用 [UIApplication sharedApplication].delegate.window

热度:99   发布时间:2023-12-15 01:51:52.0


代码中用到UIWindow *window = [UIApplication sharedApplication].keyWindow 统一修改成UIWindow *window = [UIApplication sharedApplication].delegate.window,会被uiactionsheet影响,只要任何一个地方弹过actionsheet, 页面就死掉不能操作了

  相关解决方案