Why isn't UIAlertView Showing?

前端 未结 4 1715
南笙
南笙 2021-01-06 11:12

For some reason screen gets dark and freezes, alert is not shown... can someone please help?

Thanks in advance!

} else {
    UIAlertView *alert = [[U         


        
4条回答
  •  日久生厌
    2021-01-06 11:58

    You get a dark screen without a popup, or slower popup if you show the UIAlertView from a background thread. Just out it back in the main thread and it will be fine. I just had this problem last week.

提交回复
热议问题