Sophisticated multi-user iphone ios

I need to implement a multi-user application that is very complicated for me, and I need some advice. A multi-user application looks something like this:

First view: regular UIViewController with one button, when I click on the second view Second view (aka mainview): Windows with a tab bar with 2 tabs that switch between: Second view A: Normal UIViewController with some elements Second view B: UITableViewController

Can someone give me advice on where to start reading or a few examples?

THX

+3
source share
2 answers

You need to start with a view-based application. And then create a UITabbarController in the appDelegate file.

Appdelegate.h

UITabBarController * tabBarController,
//

Appdelegate.m

//Synthsize

tabBarController = [[UITabBarController alloc] init];  
    tabBarController.delegate=self;  

//Adding Search,Nearby,Map,AboutUs,Favorites Tabs to tabBarController  
Search * search = [[Search alloc] init];  
UINavigationController *searchNav = [[UINavigationController alloc] initWithRootViewController:search];  

Nearby* nearby = [[Nearby alloc] init];  
UINavigationController *nearbyNav = [[UINavigationController alloc] initWithRootViewController:nearby];  

Map* map = [[Map alloc] init];  
UINavigationController *mapNav = [[UINavigationController alloc] initWithRootViewController:map];  

AboutUs* aboutUs = [[AboutUs alloc] init];  
UINavigationController *aboutUsNav = [[UINavigationController alloc] initWithRootViewController:aboutUs];  

Favorites* favorites = [[Favorites alloc] init];  
UINavigationController *favoritesNav = [[UINavigationController alloc] initWithRootViewController:favorites];  

NSArray* controllers = [NSArray arrayWithObjects:searchNav,nearbyNav,mapNav,aboutUsNav,favoritesNav, nil];  
tabBarController.viewControllers = controllers;  

[window addSubview:tabBarController.view];    

, , .

- (id) init {}
.

+1

, apple , , , . , : UINavigationController moreNavigationController UITabBarController

:

SecondViewController *screen = [[SecondViewController alloc] initWithNibName:nil bundle:nil];
        screen.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;


        [self presentModalViewController:screen animated:YES];

        [screen release];

,

wblade

+2

All Articles