@property (nonatomic,strong) UITabBar *tabBar;
......
if (!_tabBar) {
_tabBar = [[UITabBar alloc]initWithFrame:CGRectMake(0, SCREEN_HEIGHT-49, SCREEN_WIDTH, 49)];
_tabBar.tintColor = COLOR_APP_GRAY_180;
_tabBar.delegate = self;
UITabBarItem *itemAdd = [[UITabBarItem alloc]initWithTitle:@"加入" image:nil tag:0];
[itemAdd setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:COLOR_APP_GRAY_120,NSForegroundColorAttributeName, nil] forState:UIControlStateNormal];
[itemAdd setImage:[[UIImage imageNamed:@"fieldDetail_book"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
UITabBarItem *itemShare = [[UITabBarItem alloc]initWithTitle:@"分享" image:nil tag:1];
[itemShare setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:COLOR_APP_GRAY_120,NSForegroundColorAttributeName, nil] forState:UIControlStateNormal];
[itemShare setImage:[[UIImage imageNamed:@"fieldDetail_book"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
_tabBar.items = @[itemAdd,itemShare];
[self.view addSubview:_tabBar];
}