(void) loadBarItems {self.hasDownloadFeature = NO; NSDictionary * textAttributes = [NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor], NSForegroundColorAttributeName, [UIColor whiteColor], NSBackgroundColorAttributeName, nil];
self.navttribuA. self.navigationItem.title = APP_TITLE_TEST; NSString * title = [[AppUtils getConfigurationDictionary] objectForKey: APP_TITLE_KEY]; if (title) {self.navigationItem.title = title; } [self.navigationController.navigationBar setBackgroundImage: [UIImage imageNamed: @ "Blue.png"] forBarMetrics: UIBarMetricsDefault];
NSArray * leftBarItems = [[[[AppUtils getConfigurationDictionary ]BBIKK_B_WB) objectForKey: LEFTBARITEMS_KEY]; NSMutableArray * itemsArray = [NSMutableArray array]; for (int i = 0; i
[self. [itemsArray removeAllObjects]; for (int i = 0; i 5) {itemsCount = 5; [self.finalToolbarItems insertObject: @ "Extended" atIndex: 4];
} else {self.finalToolbarItems = [NSMutableArray arrayWithArray: toolBarItems]; itemsCount = (int) [self.finalToolbarItems count]; } [itemsArray removeAllObjects];
для (int i = 0; i
if (i != itemsCount-1) {
UIBarButtonItem *flexibleSpace2 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
[itemsArray addObject:flexibleSpace2];
}
} [self.toolbar setItems: itemsArray]; }