【发布时间】:2012-01-28 17:40:28
【问题描述】:
我的应用有一个自定义的导航栏背景。所以我做了一个这样的分类
@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect
{
UIImage *image = [UIImage imageNamed: @"image.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
在我的应用程序中,我必须使用 MFMailComposeViewController。我像
一样创建它MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
但 Apple 的文档指出
重要 邮件撰写界面本身不可定制,并且不得由您的应用程序修改。此外,在呈现界面后,您的应用程序不允许对电子邮件内容进行进一步的更改。用户仍然可以使用界面编辑内容,但程序更改会被忽略。因此,您必须在呈现界面之前设置内容字段的值。
所以这意味着我不能将“image.png”作为邮件编写器视图控制器的导航栏背景。
如何做到这一点?
谢谢
【问题讨论】:
标签: ios image email background