【发布时间】:2012-01-17 12:27:49
【问题描述】:
在我的通用应用中,
我正在导航栏上设置图像...使用 **
objective c category...on UINavigationBar
**
代码在 iphone 的 ios 5.0 中运行良好 *代码在 iPhone/iPad 的 ios 4.3 中运行良好*
*But not working in **ios 5.0 iPad***
- (void) drawRect:(CGRect)rect
{
UIImage *image;
image = [UIImage imageNamed: @"Navigation.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
[self setTintColor:[UIColor clearColor]];
NSLog(@"Draw Rect");
}
【问题讨论】:
标签: objective-c ios xcode cocoa-touch ios5