ios - activate segue after email sent -
Once the user of my app has sent an email and has informed a UILart that their email has been successfully sent to them. , Such as IDs can be moved back to the home screen through a SEZ, the user will now have to push a back button to get it.
I feel that this mail should be implemented in the Compass control system, but I have never activated the program actively.
My code is given below
- (zero) mailComposeController: (MFMailComposeViewController *) controller didFinishWithResult: (MFMailComposeResult) result error: (NSError *) Error {switch ( Result) {Case MFMailComposeResultCancelled: {[Removal controllers themselves estimated: Yes complete: zero]; } break; Case MFMailComposeResultSent: {[Self Waste ViewControllerAnimated: Yes Completed: Zero]; UIAlertView * Warning = [[UIAlertView alloc] initWithTitle: NSLocalizedString (@ "Disclaimer", "Message"): NSLocalizedString (@ "Thank You For Dobbing In One I'm In Please The police are responsible for taking action against your requests. "," ") Representative: Cancel the zerotitude: @" OK "other button titles: zero]; [Alerts show]; break; } MFMailComposeResultFailed: {{self dismissViewControllerAnimated: Yes Completed: Zero]; UIAlertView * alert_failed = [[UIAlertView alloc] initWithTitle: NSLocalizedString (@ "email failure", "") Message: NSLocalizedString (@ "Failed to send your email - retry", "") Representative: cancelButtonTitle zero: @ " Okay "other buttontitles: zero]; [Alert_file show]; break; } Default: Break; } - (Zero) Alertview: (UIAlertview *) Alert clicked Button atindex: (NSING) button index; {If (buttonIndex! = Alert.cancelButtonIndex) {[Self Performance Cigu with Identifier: @ "Huntoholm" Sender: Self]; }}
If you only need to pop on your home screen and if home Try the Skin NAV Controller Root View Controller
[self.navigationContoller popToRootViewControllerAnimated: Yes];
Or if you have a suspense for that use
[From self-display, Google's Identifier: @ "Your SGUID" sender: zero]; UPDATE If you want the transition immediately after the alert scene, click the set alert representative for the self and valid representative system
In this method to add the above code (NSInteger) buttonIndex
: (UIAlertView *) alertView clickedButtonAtIndex: (zero) alertView - pre> . If you want to make an immediate transition, then keep it before or after the
[alert show];
Comments
Post a Comment