//
// AppDelegate.m
// TabBar
//
// Created by roblonely on 15/8/16.
// Copyright (c) 2015年 roblonely. All rights reserved.
//
#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *vc1 = [UIViewController new];
vc1.title = @"联系人";
UIViewController *vc2 = [UIViewController new];
vc2.title = @"朋友圈";
UINavigationController * nc1 = [[UINavigationController alloc] initWithRootViewController:vc1];
UINavigationController * nc2 = [[UINavigationController alloc] initWithRootViewController:vc2];
UITabBarController *tbc = [UITabBarController new];
tbc.viewControllers = @[nc1,nc2];
UIImage *
iOS之TabBar设置普通和选中状态图片
最新推荐文章于 2021-01-17 15:09:58 发布