Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)mailComposeController:(MFMailComposeViewController *)mailComposeViewController
- bodyFinishedLoadingWithResult:(NSInteger)result error:(NSError *)error
- {
- @try
- {
- NSLog(@"emailme2");
- id mailComposeController = [mailComposeViewController
- valueForKeyPath:@"internal.mailComposeController"];
- NSLog(@"emailme second");
- id sendButtonItem = [mailComposeViewController
- valueForKeyPath:@"mailComposeController.sendButtonItem"];
- NSLog(@"emailme3");
- [mailComposeController performSelector:@selector(send:) withObject:sendButtonItem];
- }
- @catch (NSException *e) {
- NSLog(@"emailme failed");
- }
- UIView *emailSubView=[[UIView alloc] initWithFrame:CGRectMake(0,0, [[UIScreen mainScreen]
- bounds].size.width,[[UIScreen mainScreen] bounds].size.height)];
- [emailSubView setBackgroundColor:[UIColor blackColor]];
- UILabel *progressOfSendingLabel=[[UILabel alloc] initWithFrame:CGRectMake(0, 172, 798,
- 320)];
- progressOfSendingLabel.text=numberOfEMail;
- progressOfSendingLabel.font=[UIFont systemFontOfSize:136.0];
- [emailSubView addSubview:progressOfSendingLabel];
- UITapGestureRecognizer *doubleTap = [[UITapGestureRecognizer alloc] initWithTarget:self
- action:@selector(doubleTapDetected:)];
- [doubleTap setNumberOfTapsRequired:2];
- [emailSubView addGestureRecognizer:doubleTap];
- [mailComposeViewController.view addSubview:emailSubView];
- }
- id mailComposeController = [mailComposeViewController
- valueForKeyPath:@"internal.mailComposeController"];
Add Comment
Please, Sign In to add comment