开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜