UIViewController* cont1 = [[UIViewController alloc]init];
UIViewController* cont2 = [[UIViewController alloc]init];
UIViewController* cont3 = [[UIViewController alloc]init];
UIViewController* cont4 = [[UIViewController alloc]init];
UIViewController* cont5 = [[UIViewController alloc]init];
UIViewController* cont6 = [[UIViewController alloc]init];
UINavigationController* contBar = [[UINavigationController alloc] initWithRootViewController:cont1];
contBar.tabBarItem.title = @"واحد";
cont2.tabBarItem.title = @"أثنين";
cont3.tabBarItem.title = @"ثلاث";
cont4.tabBarItem.title = @"أربع";
cont5.tabBarItem.title = @"خمس";
cont6.tabBarItem.title = @"سته";
cont1.view.backgroundColor = [UIColor redColor];
cont2.view.backgroundColor = [UIColor blueColor];
cont3.view.backgroundColor = [UIColor grayColor];
cont4.view.backgroundColor = [UIColor purpleColor];
cont5.view.backgroundColor = [UIColor yellowColor];
const id objs[6] = { contBar,cont2,cont3,cont4,cont5,cont6};
NSArray* vuCont = [NSArray arrayWithObjects:objs count:6];
tabBarController.viewControllers = vuCont;
tabBarController.tabBar.transform = CGAffineTransformMakeRotation(3.142857142857143);
for (id d in tabBarController.tabBar.items) {
UIView* vu = [d valueForKey:@"_view"];
vu.transform = CGAffineTransformMakeRotation(3.142857142857143);
}
UITableView* tbl = [tabBarController.moreNavigationController.topViewController view];
tbl.separatorColor = [UIColor clearColor];
for (UITableViewCell* cl in [[tabBarController.moreNavigationController.topViewController view] visibleCells]) {
cl.transform = CGAffineTransformMakeRotation(180*0.0174532925);
cl.textLabel.transform = CGAffineTransformMakeRotation(180*0.0174532925);
cl.textLabel.textAlignment = UITextAlignmentRight;
}
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
return YES;
Thanks for your time :)
Ahmed Essam