Skip to content

Instantly share code, notes, and snippets.

@wonkwh
Created August 25, 2011 19:39
Show Gist options
  • Save wonkwh/1171625 to your computer and use it in GitHub Desktop.
Save wonkwh/1171625 to your computer and use it in GitHub Desktop.
Create Tabbar without XIB(2)
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:style];
if (self)
{
// get the tabbar item
UITabBarItem *tbi = [self tabBarItem];
[tbi setTitle:@"Favorite"];
// tabbar의 아이콘 이미지를 추가하려면 아래추가
//[tbi setImage:[UIImage imageNamed:@""];
}
return self;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment