IOS数据

//获取文章列表

-(void)getArticleList

{

    NSArray *array=[NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"IOSGuide" ofType:@"plist"]];

    for (int i=0; i<[array count]; i++)

    {

        DMAppSkill *skill = [[[DMAppSkill alloc]init]autorelease];

NSDictionary *diApp = [array objectAtIndex:i];

skill.title = [diApp objectForKey:@"name"];

skill.imgUrl = [diApp objectForKey:@"img"];

        skill.categoryId=[[diApp objectForKey:@"cID"] integerValue];

[self.appList addObject:skill];

    }

    [self reload];

}

你可能感兴趣的:(IOS数据)