UIActionSheet Crashes on iPad / not iPhone

前端 未结 6 619
-上瘾入骨i
-上瘾入骨i 2021-01-03 16:24

When I look in the console I get this message

2010-09-18 17:04:05.284 Wasted Time[8998:207] *** Assertion failure in -[UIActionSheet showInView:], /SourceCache/UI         


        
6条回答
  •  余生分开走
    2021-01-03 16:47

    I believe the problem is that the view has not appeared yet. Put it in viewDidAppear: and it should work fine.

提交回复
热议问题