CALayer invalid geometry , Mfmailcomposer
Am trying to open MFMailComposer
class, but it crashes on init
method giving CALayer
position contains NaN: [nan 24.5]
Am trying to present MF开发者_如何学JAVAmailcomposer
on a ViewController
VSMailPicker = [[MFMailComposeViewController alloc] init];
VSMailPicker.mailComposeDelegate = self;
[self presentModalViewController:VSMailPicker animated:YES];
Don't know what am I doing wrong.
MFMailComposeViewController
uses some native elements that shouldn't be categorized. So, you have to be sure there aren't any categories on elements like UITextField
or UITextView
.
精彩评论