Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ok, I really needed to solve this ASAP, therefore I opted for a solution I was lucky enough to find <a href="https://stackoverflow.com/questions/3181193/how-to-add-a-banner-image-view-on-top-of-uinavigation-bar">here</a>. I still have to solve the management of the UITabBarController added on bottom but the rest seems to be working fine. Thanks everyone for help and additional hints.</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; [self.window setBackgroundColor:[UIColor redColor]]; // Create a view for the banner add the banner to this view UIImageView *bannerImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320, 45)]; bannerImageView.image = [UIImage imageNamed:@"banner"]; // put this banner above the nav bar UIView *bannerView = [[UIView alloc] initWithFrame:CGRectMake(0, -44, 320, 44)]; [bannerView addSubview:bannerImageView]; //add the tabBarController as a subview of the view UITabBarController *tabBarController = [[UITabBarController alloc] init]; [tabBarController.view addSubview:bannerView]; // Move the root view to show status bar &amp; banner tabBarController.view.frame = CGRectMake(0, 20+44, 320, 480-20-44); //add the modified logo view to window [self.window addSubview:tabBarController.view]; ViewController1 *viewController1 = [[ViewController1 alloc] initWithNibName:@"ViewController1" bundle:nil]; UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:viewController1]; tabBarController.viewControllers = [NSArray arrayWithObjects:navigationController, nil]; //tabBarController.tabBar.hidden = YES; [self.window setRootViewController:tabBarController]; [self.window makeKeyAndVisible]; return YES; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload