iOS 8.3 UIAlertController crashes when trying to add a textfield

后端 未结 12 1603
暗喜
暗喜 2020-12-30 03:44

I have an iPad app. I am creating an UIAlertController and adding a textfield. It crashes. It only crashes when I add a textfield.

let alert = UIAlertContr         


        
12条回答
  •  爱一瞬间的悲伤
    2020-12-30 04:28

    Try to set alert.view.frame explicitly to something small. I think by default it may be as big as the application view, triggering this on its subviews.

提交回复
热议问题