반응형
simple example
//source code
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
NSString *sectionName;
switch (section)
{
case 0:
sectionName = NSLocalizedString(@" Function", @" Function");
break;
case 1:
sectionName = NSLocalizedString(@" Legend", @" Legend");
break;
case 2:
sectionName = NSLocalizedString(@" Values", @" Values");
break;
default:
sectionName = @"";
break;
}
return sectionName;
}
반응형
'맥, iOS' 카테고리의 다른 글
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 |
iOS - Bool 값 NSLog에서 출력하기 (0) | 2014.05.06 |