2010-06-15 66 views
0

我創建了一個包含5行ListView的應用程序: - 第一個包含圖表 - 包含一些格式相同的數據的第2到第5行。iphone:自定義UITableViewCell比默認單元格視圖更高

我已經創建了2個類:GraphCustomViewCell和DataCustomViewCell。 取決於細胞的我與加載正確CustomCell位置:

NSArray *topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"GraphCustomViewCell" owner:nil options:nil];    
for(id currentObject in topLevelObjects) 
{ 
    if([currentObject isKindOfClass:[GraphCustomViewCell class]]) 
    { 
     cell = (GraphCustomViewCell *)currentObject; 
     break; 
    } 
} 

該工程所不同的是在第一行精細,對應於圖中的一個,是(高),該4個其他行更大,並作爲結果隱藏了第一個其他行。

在表格視圖中是否有任何選項可以使定製單元擴展默認單元格? 我希望5行(圖形+4數據行)適合整個屏幕(480 - tabbar的高度)。

非常感謝您的幫助。 Regards, Luc

回答

相關問題