I got a problem, I need to build something similar to this, where the red bar is a UIImageView and the blue bar is the navigation bar: http://imagizer.imageshack.us/v2/800x600q90/30/iqtt.png
I was able to make it with the following code, my problem is that when I press home button to close the app and reopen it, my navigation bar shrinks, on the link image it has 88px and after relaunch 44px, so it mess with my layout.
Here is the code I've used on viewDidAppear:
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
self.navigationController.view.frame = CGRectMake(0, 0, 320, 568);
self.navigationController.navigationBar.frame = CGRectMake(0, 0, 320, 88);
v = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 44)];
UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(33, 5, 255, 29)];
[img setImage:[UIImage imageNamed:@"top-logo"]];
[v addSubview:img];
[self.navigationController.navigationBar addSubview:v];
}
How could I fix that behavior?