0

カスタムナビゲーションバーが必要ですが、ナビゲーションバーとステータスバーの間に空白があります。コードは次のとおりです。

@implementation UINavigationBar (CustomImage) 
- (void)drawRect:(CGRect)rect {
UIImage *image = [UIImage imageNamed: @"NavigationBar.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end

ご協力ありがとうございました!

4

2 に答える 2