Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 三个20 titleForHeaderInSection_Iphone_C++_Three20 - Fatal编程技术网

Iphone 三个20 titleForHeaderInSection

Iphone 三个20 titleForHeaderInSection,iphone,c++,three20,Iphone,C++,Three20,以下是我补充的内容。它只是列出了每个字母表字符下的所有objectsforcharacter - (void)tableViewDidLoadModel:(UITableView*)tableView { items = [[NSMutableArray alloc] init]; arrayOfCharacters = [[NSMutableArray alloc]init]; objectsForCharacters = [[NSMutableDictionary alloc]init];

以下是我补充的内容。它只是列出了每个字母表字符下的所有objectsforcharacter

- (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);
}
-(void)tableViewDidLoadModel:(UITableView*)tableView{
items=[[NSMutableArray alloc]init];
arrayOfCharacters=[[NSMutableArray alloc]init];
objectsForCharacters=[[NSMutableDictionary alloc]init];
NSMutableArray*arrayOfNames=[[NSMutableArray alloc]init];
适用于(Kid_CareAppDelegate_City*在searchFeedModel.posts中发布){
[arrayOfNames addObject:post.city];
[items addObject:[TTTableTextItemWithText:post.city
URL:[NSString stringWithFormat:@“tt://city”to=%@,[post.city STRINGBYREPLACINGOCURENSEOFSTRING:@”“withString:@“+”]]];
}

对于(char c='A';c您可以查看链接。

我更改了上面的函数,我很接近,但太远了。