• 错误:Warning: Attempt to present <UIAlertController: 0x7fd192806e20> on <ViewController: 0x7fd1928048d0> whose view is not in the window hierarchy!


    系统:mac OS  10.12 (16A323)

    Xcod:8.3.3

    错误:Warning: Attempt to present <UIAlertController: 0x7fd192806e20> on <ViewController: 0x7fd1928048d0> whose view is not in the window hierarchy!

    原因:今天写UIalerCortoller 出现此错误,查找得资料这是个经典的 错误,在往后日子里面都会遇到类似问题,这是因为弹窗视图必须在当前根控制器初始化现实后才可以执行,在viewDidLoad 方法里面还未初始化完毕导致。

     

     

     

  • 相关阅读:
    Reporting Services 配置工具
    管道符、重定向和环境变量
    靶机DC-2 rbash绕过+git提权
    单表查询
    数据库和表的基本操作(二)
    数据库和表的基本操作(一)
    MySQL的约束
    bugku-misc 9-16
    Linux基础命令
    时间-i春秋
  • 原文地址:https://www.cnblogs.com/tanglie/p/7488418.html
Copyright © 2020-2023  润新知