2009-05-27 99 views
0

我正在使用Joe Hewitt的three20開源項目。水平滾動不能在three20項目的tabBar中工作?

有下面的代碼在一個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; 

一切似乎是工作的罰款只是TabBarStrip不會水平滾動?任何想法爲什麼會發生這種情況以及任何可能的解

+0

你對3.0建築?我發現很多UI元素都在3.0以下。特別是涉及到滾動時。 (MessageViewController也有問題) – Bluephlame 2009-05-28 01:43:27

+0

即使在2.2.1下也不會水平滾動 – zpesk 2009-05-28 19:19:01

回答

1

這裏是我做錯了什麼:

在項目設置,在其他連接標誌,我沒加「all_load」,我只加「ObjC」。

0

TTTabStrip不再在Three20源代碼中可用。您可能希望將您的代碼遷移到新的TTTabBar類。

你知道嗎?TTTabStrip視圖是爲了水平滾動嗎?在標籤條中有這麼多項目似乎是一個用戶界面,對iPhone等設備而言過於複雜。