iOS 调发送短信界面 textfield 失去焦点

iOS 调发送短信界面 textfield 

1. 去掉系统Alert

2. 或是 [self dismissModalViewControllerAnimated:YES];修改为[self dismissModalViewControllerAnimated:NO];

#pragma mark message sender delegate

-(void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result

{

    [self dismissModalViewControllerAnimated:YES];

    if (result == MessageComposeResultCancelled)

    {

        NSLog(@"Message cancelled");

    }

    else if (result == MessageComposeResultSent)

    {

        [ProjectUtil showAlert:@"提示" message:@"短信已发送,反馈结果将通过短信回复给您,请您注意查收!"];

        [self.navigationController popViewControllerAnimated:YES];

    }

    else

    {

        [ProjectUtil showAlert:@"提示" message:@"发送失败"];

        [self.navigationController popViewControllerAnimated:YES];

    }

    [self.view.window makeKeyAndVisible];

}


你可能感兴趣的:(iOS 调发送短信界面 textfield 失去焦点)