我需要在我的所有頁面中顯示導航欄下方的圖像(徽標)。跨應用程序在全球範圍內添加徽標圖像
我實現
@implementation UINavigationBar (CustomImage)
(void)drawRect:(CGRect)rect
{
UIImage *image = [UIImage imageNamed: @"logo.png"];
[image drawInRect:CGRectMake(self.frame.size.width/2, 40, 89, 42)];
}
中的appdelegate
將無法正常工作。是走出這可能在全球範圍內使用圖像或任何其他更好的辦法?