2012-06-25 60 views
-2

可能重複:
iPhone UITableView Sections如何在UITableView中實現多個部分的細節?

現在我在學習上的iOS開發的UITableView課,我如何能實現對細節的UITableView多個部分非常感謝!

+0

- (NSInteger的)numberOfSectionsInTableView:(UITableView的*)的tableView { 回報1或任意數量的您想要段; } – janusbalatbat

+1

此問題已被多次詢問。看到這裏:http://stackoverflow.com/questions/6445666/iphone-uitableview-sections –

回答

0

從以下委託方法UITableViewDataSource返回適當的值。

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView; 
0

閱讀this

是的,閱讀所有的其他部分,以及對UITableView的

0

了一系列教程,爲這個偉大的,你可以使用的tableview委託方法

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 
{ 
    NSInteger iSectionCount = 1; 

    return iSectionCount; 
} 

或簡單地只是

return 1;//For 1 section 

委託方法

0

要返回單節做這裏面:

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 
    { 
     return 1; 
    }