2012-11-09 2 views

답변

0

사용 UIGestures

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 

{ 

    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; 

    UITabBarController *tabController = [[UITabBarController alloc] init]; 


    UIViewController *viewController1 = [[UIViewController alloc] init]; 
    // UIlongtapGusture alloc and add it to viewController1 


    UIViewController *viewController2 = [[UIViewController alloc] init]; 
    // UIlongtapGusture alloc and add it to viewController2 

    UIViewController *viewController3 = [[UIViewController alloc] init];  
    // UIlongtapGusture alloc and add it to viewController3 

    UIViewController *viewController4 = [[UIViewController alloc] init]; 
    // UIlongtapGusture alloc and add it to viewController4 


    tabController.viewControllers = [NSArray arrayWithObjects:viewController1, 

            viewController2, 

            viewController3, 

            viewController4, nil]; 

    self.window.rootViewController = tabController; 


    [self.window makeKeyAndVisible]; 

    return YES; 

} 

customization of the tab-bar here

참조
관련 문제