Skip to content

Commit

Permalink
make the UINavigationBar height even bigger and add custom background…
Browse files Browse the repository at this point in the history
… but comment it out
  • Loading branch information
mhorbul committed Jun 17, 2010
1 parent be218dd commit 3c9d806
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Classes/RootViewController.m
Expand Up @@ -8,6 +8,20 @@


#import "RootViewController.h" #import "RootViewController.h"


//@interface UINavigationBar (CustomBackground)
//@end
//
//@implementation UINavigationBar (CustomBackground)
//
//-(void)drawRect:(CGRect)rect {
// UIImage *image = [UIImage imageNamed: @"navbar_bg.png"];
// [image drawInRect:rect];
// NSLog(@"drawRect : rect: x=%.f, y=%.2f, w=%.2f, h=%.2f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
// NSLog(@"drawRect : frame: x=%.f, y=%.2f, w=%.2f, h=%.2f", self.frame.origin.x, self.frame.origin.y, self.frame.size.width, self.frame.size.height);
//}
//
//@end

@implementation RootViewController @implementation RootViewController


#pragma mark - #pragma mark -
Expand All @@ -22,7 +36,7 @@ - (void)viewDidLoad {


- (void)viewWillAppear:(BOOL)animated { - (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated]; [super viewWillAppear:animated];
CGRect rect = CGRectMake(0.0f, 20.0f, 320.0f, 49.0f); CGRect rect = CGRectMake(0.0f, 20.0f, 320.0f, 60.0f);
self.navigationController.navigationBar.frame = rect; self.navigationController.navigationBar.frame = rect;
NSLog(@"drawRect: x=%.f, y=%.2f, w=%.2f, h=%.2f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height); NSLog(@"drawRect: x=%.f, y=%.2f, w=%.2f, h=%.2f", rect.origin.x, rect.origin.y, rect.size.width, rect.size.height);
} }
Expand Down

0 comments on commit 3c9d806

Please sign in to comment.