开发者

CALayer invalid geometry , Mfmailcomposer

开发者 https://www.devze.com 2023-03-13 14:04 出处:网络
Am trying to open MFMailComposer class, but it crashes on init method giving CALayer position contains NaN: [nan 24.5]

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消