开发者

Toolbars not showing up on MailController

开发者 https://www.devze.com 2023-02-11 17:59 出处:网络
MFMailComposeViewController *mailController = [[MFMa开发者_StackOverflow社区ilComposeViewController alloc] init];
MFMailComposeViewController *mailController = [[MFMa开发者_StackOverflow社区ilComposeViewController alloc] init];

UIBarButtonItem *systemItem1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction 
                                                        target:self action:@selector(action];

[mailController setToolbarItems:[NSArray arrayWithObject:systemItem1]];

The systemItem1 UIBarButtonItem is not showing up.


UIBarButtonItem *btnTemp = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonItemStyleDone target:self action:nil];

[[[[picker viewControllers] lastObject] navigationItem] setRightBarButtonItem:btnTemp]; 

[btnTemp release];

Likewise, you can customize anything from it...BUT

From the MFMailComposeViewController Class Reference: Important: The mail composition interface itself is not customizable and must not be modified by your application. In addition, after presenting the interface, your application is not allowed to make further changes to the email content.


You are not allowed to modify this view controller. Apple has put measures in place to prevent its editing this way.

0

精彩评论

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