diff options
author | matt handler <matt.handler@gmail.com> | 2011-04-22 17:31:11 -0400 |
---|---|---|
committer | matt handler <matt.handler@gmail.com> | 2011-04-22 17:31:11 -0400 |
commit | a14cc19fb021a74be4c2d756eab040c95b3a487e (patch) | |
tree | c299b01878cbc8aeb18907344cc8d54a99b9a197 /Classes/PicCastAppDelegate.m | |
parent | 8d7be4b1189a27a8c01b50bf8437d8bb4628362f (diff) | |
download | piccast-app-a14cc19fb021a74be4c2d756eab040c95b3a487e.tar.gz piccast-app-a14cc19fb021a74be4c2d756eab040c95b3a487e.zip |
just some small cleanup, moved the navbar image thing to main app delegate,
Diffstat (limited to 'Classes/PicCastAppDelegate.m')
-rw-r--r-- | Classes/PicCastAppDelegate.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Classes/PicCastAppDelegate.m b/Classes/PicCastAppDelegate.m index baa06df..ab242ec 100644 --- a/Classes/PicCastAppDelegate.m +++ b/Classes/PicCastAppDelegate.m @@ -10,6 +10,21 @@ #import <Three20Network/TTURLRequestQueue.h> +@implementation UINavigationBar (CustomImage) +- (void)drawRect:(CGRect)rect { + //NSLog(@"titlebar: %@", self.barStyle); + if (self.barStyle == UIBarStyleDefault) { + UIImage *image = [UIImage imageNamed: @"titleBarBackground.png"]; + [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; + } + else { + UIImage *image = [UIImage imageNamed: @"titleBarBackgroundBlack.png"]; + [image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)]; + } + //[super drawRect:rect]; +} +@end + @implementation PicCastAppDelegate @synthesize window; |