UINavigationBar에 이미지를 배경으로 지정하기 #import @interface LWNavigationBar : UINavigationBar { UIImage*background; } @end @implementation LWNavigationBar - (void)drawRect:(CGRect)rect { if(background == nil) background = [UIImage imageNamed:@"cs1_header.png"]; [background drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; } - (void)dealloc { [background release]; [super dealloc]; } @end Interface Builder 에서 N.. 더보기 이전 1 ··· 36 37 38 39 40 41 42 ··· 95 다음