gpt4 book ai didi

iphone - Three20 titleForHeaderInSection

转载 作者:行者123 更新时间:2023-11-28 08:16:20 25 4
gpt4 key购买 nike

这是我添加的。它只是列出了每个字母字符下的所有 objectsForCharacters。

- (void)tableViewDidLoadModel:(UITableView*)tableView {
items = [[NSMutableArray alloc] init];
arrayOfCharacters = [[NSMutableArray alloc]init];
objectsForCharacters = [[NSMutableDictionary alloc]init];
NSMutableArray *arrayOfNames = [[NSMutableArray alloc]init];
for (Kid_CareAppDelegate_City* post in _searchFeedModel.posts) {
[arrayOfNames addObject:post.city];
[items addObject:[TTTableTextItem itemWithText:post.city
URL:[NSString stringWithFormat:@"tt://city?to=%@",[post.city stringByReplacingOccurrencesOfString:@" " withString:@"+"]]]];
}
for(char c='A';c<='Z';c++){
[arrayOfCharacters addObject:[NSString stringWithFormat:@"%c",c]];
[objectsForCharacters setObject:arrayOfNames forKey:[NSString stringWithFormat:@"%c",c]];
}
NSLog(@"Array %@",arrayOfCharacters);
NSLog(@"Dict %@",objectsForCharacters);
TT_RELEASE_SAFELY(arrayOfNames);

self.items = items;
TT_RELEASE_SAFELY(items);
}

最佳答案

您可以查看链接。 http://blog.webscale.co.in/?p=240

关于iphone - Three20 titleForHeaderInSection,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7643231/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com