Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/120.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS9 alertView在以下情况下不显示;“无sim卡”;警报视图显示_Ios_Ios9_Uialertview_Uialertcontroller - Fatal编程技术网

iOS9 alertView在以下情况下不显示;“无sim卡”;警报视图显示

iOS9 alertView在以下情况下不显示;“无sim卡”;警报视图显示,ios,ios9,uialertview,uialertcontroller,Ios,Ios9,Uialertview,Uialertcontroller,当请求失败时,我的应用程序将显示alertView 当应用程序发送请求时,我将应用程序设置为后台 然后我拿出SIM卡。 iPhone显示alertView:“无sim卡”(不按OK) 现在,应用程序将在后台显示AlertView 然后我按OK(在SIM卡alertView上),然后在前台打开应用程序 我发现警报视图没有出现但它在那里它覆盖了屏幕,我不能触摸其他任何东西 我尝试了UIAlertView和UIAlertController,但失败了 我打印出VCs,发现UIAlertControll

当请求失败时,我的应用程序将显示alertView

  • 当应用程序发送请求时,我将应用程序设置为后台

  • 然后我拿出SIM卡。 iPhone显示alertView:“无sim卡”(不按OK)

  • 现在,应用程序将在后台显示AlertView

  • 然后我按OK(在SIM卡alertView上),然后在前台打开应用程序

  • 我发现
    警报视图
    没有出现但它在那里它覆盖了屏幕,我不能触摸其他任何东西

    我尝试了
    UIAlertView
    UIAlertController
    ,但失败了

    我打印出VCs,发现
    UIAlertControllerView
    被隐藏

    (lldb)聚氯乙烯 ,状态:已出现,视图: +,状态:已出现,视图:,显示内容: (lldb)采购订单0x142aa4000

    设备版本:iOS 9.1


    这是iOS 9.1的一个bug吗?或者我可以解决什么问题?

    您可以编辑此问题,在任何地方使用“alertView”而不是“alterView”吗?标题现在真的很混乱。有趣的边缘案例。回到前台时,是否尝试刷新视图(setNeedsLayout)?