Possible Duplicate:
iPhone UITableView Sections
I'm now learning UITableView class on iOS development,How can i implement multiple sections in UITableView for details?Big Thanks!
Possible Duplicate:
iPhone UITableView Sections
I'm now learning UITableView class on iOS development,How can i implement multiple sections in UITableView for details?Big Thanks!
Return proper value from below delegate method of UITableViewDataSource
.
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
For this you can use the tableview delegate method
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
NSInteger iSectionCount = 1;
return iSectionCount;
}
or simply just
return 1;//For 1 section
inside the delegate method