반응형
simple example
//source code
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
if (section == 0)
return 1;
else if(section == 1)
return [legend_value count];
//legend is NSMutableArray
else if(section == 2)
return [obs_value count];
//obs_value is NSMutableArray
else
return 0;
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
// create 3 sections
return 3;
}
반응형
'맥, iOS' 카테고리의 다른 글
swift basic - range operator (0) | 2014.11.05 |
---|---|
swift basic - function (0) | 2014.11.04 |
playground test in Xcode (0) | 2014.11.04 |
iOS - number of sections && number of rows in sections (0) | 2014.10.11 |
iOS - Section name of Dynamic table view (0) | 2014.10.11 |
iOS - Cell of dynamic table view using storyboard (0) | 2014.10.11 |
iOS - NSString to NSData (0) | 2014.09.23 |
iOS - Free icons (무료 아이콘) (0) | 2014.05.06 |