iOSノート

2738 ワード

for(NSDictionary *dict in info){
NSInteger idx = [info indexOfObject:dict];
NSLog(@"%d",idx);
}
 
"error: failed to attach to process ID 0"  

 simulator , simulator 。

 simulator menubar ,ios --> ,

 ,run app !
IOS UITableView  http://blog.csdn.net/qq5306546/article/details/8062606 
NSMutableArray *demaxiyaHeros;


    NSMutableArray *nuokesasiHeros;


    


    heroSections = [[NSMutableArray alloc] initWithObjects:@"       ",@"       ", nil]; 


    demaxiyaHeros = [[NSMutableArray alloc] init];


    nuokesasiHeros = [[NSMutableArray alloc] init];


    


    [demaxiyaHeros addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" ",@"name",@"gailun.jpg",@"picture",@"http://games.qq.com/zt2011/lolchampions/garen.htm",@"url", nil]]; 


    [demaxiyaHeros addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" ",@"name",@"manwang.jpg",@"picture",@"http://games.qq.com/zt2011/lolchampions/tryndamere.htm",@"url", nil]]; 


    [demaxiyaHeros addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" ",@"name",@"jiansheng.jpg",@"picture",@"http://games.qq.com/zt2011/lolchampions/yi.htm",@"url", nil]]; 


    [demaxiyaHeros addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" ",@"name",@"debang.jpg",@"picture",@"http://games.qq.com/zt2011/lolchampions/xinzhao.htm",@"url", nil]]; 


    


    [nuokesasiHeros addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" ",@"name",@"kate.jpg",@"picture",@"http://games.qq.com/zt2011/lolchampions/katarina.htm",@"url", nil]]; 


    [nuokesasiHeros addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" ",@"name",@"guishu.jpg",@"picture",@"http://games.qq.com/zt2011/lolchampions/leblanc.htm",@"url", nil]]; 


    


    heroData = [[NSMutableArray alloc] initWithObjects:demaxiyaHeros,nuokesasiHeros, nil];


    


    NSLog(@"%@",demaxiyaHeros);


    


    [demaxiyaHeros release];


    [nuokesasiHeros release];