ios - Custom modal view controller looks odd after dismissing MFMailComposeViewController -
here code have used, when return mail compose controller previous modal view controller size reduced. not able find set controller size make effect on presenting view controller.
- (void)mailcomposecontroller:(mfmailcomposeviewcontroller*)controller didfinishwithresult:(mfmailcomposeresult)result error:(nserror*)error { switch (result) { case mfmailcomposeresultcancelled: nslog(@"mail cancelled: cancelled operation , no email message queued."); break; case mfmailcomposeresultsaved: nslog(@"mail saved: saved email message in drafts folder."); break; case mfmailcomposeresultsent: nslog(@"mail send: email message queued in outbox. ready send."); break; case mfmailcomposeresultfailed: nslog(@"mail failed: email message not saved or queued, possibly due error."); break; default: nslog(@"mail not sent."); break; } // remove mail view [self dismissviewcontrolleranimated:yes completion:nil]; self.view.frame = cgrectmake(0, 0, self.view.frame.size.width - 30, self.view.frame.size.height/2);
}
it silly mistake. want close question thats why posting answer after long time.
self.view.frame = cgrectmake(0, 0, self.view.frame.size.width - 30, self.view.frame.size.height/2);
i had fix line every time reduce width , size. beginning in ios ;)
Comments
Post a Comment