-[ display]: Ignoring bogus layer size

前端 未结 6 2384
天命终不由人
天命终不由人 2021-02-19 05:43
-[ display]: Ignoring bogus layer size (255211754908294243945860531626574872576.000000, 340282346638528859811704183484516925440.000000)
         


        
6条回答
  •  無奈伤痛
    2021-02-19 06:45

    I just encountered this error in a view controller that was being presented in a popover. The "ignoring bogus layer size" error was occurring when the popover was presented, and as a result a text field within the view controller did not render its text.

    In my case, moving a textField.becomeFirstResponder() call from viewWillAppear to viewDidAppear resolved the issue.

提交回复
热议问题