The iOS app crashed right after clicking the button on a UIAlertview

前端 未结 3 1709
走了就别回头了
走了就别回头了 2021-01-21 17:33

I tried to dial a number with the phone app after the user click on a button on a UIAlertview. The phone app did open, but the original app crashed right after clicking the butt

3条回答
  •  执念已碎
    2021-01-21 17:54

    The problem might be that you set your alert to nil before your if statement. Try putting it after.

提交回复
热议问题