Set the navigation bar topic in IOS development and the navigation bar topic in ios development
/*** The system calls this class for the first time (only one class is called once) */+ (void) initialize {// set the navigation bar topic UINavigationBar * navBar = [UINavigationBar appearance]; // set the background image NSString * bgName = nil; if (iOS7) {// iOS 7.0 bgName = @ "NavBar64";} else {// non-iOS7 bgName = @ "NavBar";} [navBar setBackgroundImage: [UIImage imageNamed: bgName] forBarMetrics: UIBarMetricsDefault]; // set the title text color NSMutableDictionary * attrs = [NSMutableDictionary dic Tionary]; attrs [NSForegroundColorAttributeName] = [UIColor whiteColor]; attrs [NSFontAttributeName] = [UIFont systemFontOfSize: 16]; [navBar setTitleTextAttributes: attrs]; // set the topic UIBarButtonItem * item = [UIBarButtonItem appearance]; // set the text color to optional * itemAttrs = [invalid dictionary]; itemAttrs [character] = [UIFont systemFontOfSize: 14]; itemAttrs [NSForeground ColorAttributeName] = [UIColor whiteColor]; [item setTitleTextAttributes: itemAttrs forState: UIControlStateNormal]; if (! IOS7) {// set the button background [item setBackgroundImage: [UIImage imageNamed: @ "NavButton"] forState: UIControlStateNormal barMetrics: UIBarMetricsDefault]; [item attributes: [UIImage imageNamed: @ "NavButtonPressed"] forState: Alert barMetrics: UIBarMetricsDefault]; // set the background of the return button [item Background: [UIImage imageNamed: @ "NavButton"] forState: UIControlStateNormal barMetrics: UIBarMetricsDefault]; [item representation: [UIImage imageNamed: @ "NavButtonPressed"] forState: UIControlStateHighlighted barMetrics: UIBarMetricsDefault];} else {navBar. tintColor = [UIColor whiteColor] ;}}