TTTabItem in three20 icon not working?
I have been trying to get TTTabItem to work with images. And I dug up that you can set the icon to an image file. This is my implemenation:
TTTabItem *tab1 = [[[TTTabItem alloc] initWithTitle:@"Item 1"]
autorelease]; tab1.icon = @"bundle://icon_eat_min.png"; filterBar.tabItems = [NSArray arrayWithObjects: 开发者_如何学C tab1, nil]; [scrollView addSubview:filterBar];
However, my icon doesn't even appear. I even search through this group:
http://groups.google.com/group/three20/browse_thread/thread/f879f6643...
and override the rounded style. But I am just contemplating why would you have an something you can set and not have it work? or am i doing this badly
You have to set tabStyle
for TTTabBar
TTTabBar *bankTabs = [[TTTabStrip alloc] initWithFrame:CGRectMake(4, 80, 302, 40)];
[bankTabs setTabStyle:@"launcherButtonImage:"];
精彩评论