0

我想知道是否有此标签栏自定义的教程或任何提示,当您选择标签栏并按住时,您可以将图标更改为用户喜欢的类型(检查底部)。[标签] http://tapbots.com/software/tweetbot/

4

1 回答 1

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;

}

在此处查看标签栏的自定义

于 2012-11-09T11:19:12.460 回答