Iphone xcode选项卡栏可自定义
我想知道是否有关于这个选项卡栏自定义的教程或任何提示,当您选择一个选项卡栏并按住时,您可以将图标更改为用户喜欢的类型(检查底部)。Iphone xcode选项卡栏可自定义,iphone,xcode,Iphone,Xcode,我想知道是否有关于这个选项卡栏自定义的教程或任何提示,当您选择一个选项卡栏并按住时,您可以将图标更改为用户喜欢的类型(检查底部)。 [选项卡]使用手势 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen
[选项卡]使用手势
- (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;
}
见