开发者

How to set title in the MFMailComposerViewController?

开发者 https://www.devze.com 2022-12-24 11:19 出处:网络
I am trying to set the title of MFMailComposerViewController , which is a subclass of UINavigationController.

I am trying to set the title of MFMailComposerViewController , which is a subclass of UINavigationController.

I am using these following ways :

 MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
 [picker.navigationController navigationItem].title = @"Send Mail";
 [[picker navigationItem] setTitle:@"Send Mail"];

But I am not able to set t开发者_运维百科he Title.

Am i doing it wrong ?? Is there any other method to do so ??

Thanks


The title is updated whenever the subject changes. You cannot change the title programmatically within AppStore restrictions. You may use -setSubject: to initialize the subject.

(A bad way to solve this is to create a very high-level window with a label that covers original title. This is very difficult to make this work with orientation change.)

0

精彩评论

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

关注公众号