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
The problem might be that you set your alert to nil before your if statement. Try putting it after.