0
我想知道是否有一個教程或任何提示標籤欄自定義,當你選擇一個標籤欄,並保持你可以更改圖標爲用戶喜歡有點像這樣(檢查底部)。 [TAB] http://tapbots.com/software/tweetbot/xcode標籤欄可定製
我想知道是否有一個教程或任何提示標籤欄自定義,當你選擇一個標籤欄,並保持你可以更改圖標爲用戶喜歡有點像這樣(檢查底部)。 [TAB] http://tapbots.com/software/tweetbot/xcode標籤欄可定製
使用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;
}