iOS7 Navigationsleiste durchscheinend = NEIN

Ich habe ein Hintergrundbild, das in allen Ansichten gleich ist, aber die Navigationsleiste ist standardmäßig auf JA eingestellt und der Hintergrund ist nicht homogen. Ich habe verschiedene Lösungen ausprobiert, aber nichts geändert :(

meine AppDelegate.h

#import <UIKit/UIKit.h>

@interface AppDelegate : UIResponder <UIApplicationDelegate>

@property (strong, nonatomic) UIWindow *window;

@end

meine AppDelegate.m

#import "AppDelegate.h"

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >>16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.

[[UINavigationBar appearance] setBarTintColor: UIColorFromRGB(0x45312a)];
[[UINavigationBar appearance] setTintColor: [UIColor whiteColor]];

NSArray *ver = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."];
if ([[ver objectAtIndex:0] intValue] >= 7) {
    self.navigationController.navigationBar.translucent = NO;
}

return YES;
}

aber in der Zeile:

self.navigationController.navigationBar.translucent = NO;

Gib mir diesen Fehler: Die Eigenschaft 'navigationController' wurde für ein Objekt vom Typ 'AppDelegate *' nicht gefunden.

Kann mir jemand helfen? Vielen Dank!

Antworten auf die Frage(3)

Ihre Antwort auf die Frage