Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
in the place where you init the navigationController:
fixer = [[AENavigationControllerDelegate alloc] init];
navigationController.delegate = fixer;
@interface AENavigationControllerDelegate : NSObject <UINavigationControllerDelegate>
@implementation AENavigationControllerDelegate
#define bgImageTag 143
- (void)navigationController:(UINavigationController *)navigationController
didShowViewController:(UIViewController *)viewController
UIImageView* imageView = (UIImageView*)[navigationController.navigationBar viewWithTag:bgImageTag];
UIImage *image = [UIImage imageNamed:@"header-logo-bg.png"];
imageView = [[UIImageView alloc] initWithImage:image];
imageView.tag = bgImageTag;
[navigationController.navigationBar insertSubview:imageView atIndex:0];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment