Reputation: 4353
I am using the three20 open source project by Joe Hewitt.
have the following code in a UITableViewController:
_tabBar1 = [[TTTabStrip alloc] initWithFrame:CGRectMake(0, 0, 320, 41)];
_tabBar1.tabItems = [NSArray arrayWithObjects:
[[[TTTabItem alloc] initWithTitle:@"item1"] autorelease],
[[[TTTabItem alloc] initWithTitle:@"item2"] autorelease],
[[[TTTabItem alloc] initWithTitle:@"item3"] autorelease],
[[[TTTabItem alloc] initWithTitle:@"item4"] autorelease],
[[[TTTabItem alloc] initWithTitle:@"item5"] autorelease],
[[[TTTabItem alloc] initWithTitle:@"item6"] autorelease], nil];
self.tableView.tableHeaderView= _tabBar1;
Everything seems to be working fine except that the TabBarStrip will not scroll horizontally? Any idea why this is happening and any possible solutions?
Upvotes: 0
Views: 1267
Reputation: 4353
Here was what i did wrong:
In project settings, under other linker flags, i did not add "all_load", i only added "ObjC".
Upvotes: 1
Reputation: 2600
TTTabStrip
is no longer available in the Three20 source code. You may want to migrate your code to the new TTTabBar
class.
Do you know if the TTTabStrip
view is meant to scroll horizontally? Having so many items in a tab strip seems like a user interface that's overly complicated for a device like the iPhone.
Upvotes: 0