大文字の最初の文字を返したいと思いNSString
ます。UISearchDisplayController
検索結果のタイトルに応じてセクションタイトルを表示するがあります。
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {
NSString *sectionTitle;
if (searching)
sectionTitle = [searchSectionTitles objectAtIndex:section];
else
sectionTitle = [[collation sectionTitles] objectAtIndex:section];
return sectionTitle;
}
そして、手紙を返すために、私の検索機能で、
[searchSectionTitles addObject:[lastName firstLetter]];
どうすれば作れますか
- (NSString *)firstLetter
NSString
?の最初の文字を返します