解析,全局表格mu数组

#import "Reachability.h"

#import "UIImageView+WebCache.h"

#import "SDImageCache.h"

#import "NetworkData.h"


model*one=arr[indexPath.row];

    cell.textL.text= one.title;

    cell.detaL.text=one.releaseDate;

    [cell.imageVsd_setImageWithURL:[NSURLURLWithString:one.imageUrl]placeholderImage:[UIImageimageNamed:@""]completed:^(UIImage*image,NSError*error,SDImageCacheTypecacheType,NSURL*imageURL) {



METHOD

-(void)json{

[[[NetworkDataalloc]init]GET:JSONparams:nilcompletion:^(iddata,BOOLsuccess) {

        self->arr=[[NSMutableArrayalloc]init];

        for(NSDictionary*dicin[dataobjectForKey:@"data"]) {


            model*one=[[modelalloc]init];

            one.title=[dicobjectForKey:@"title"];

            one.releaseDate=[dicobjectForKey:@"releaseDate"];

            one.imageUrl=[dicobjectForKey:@"imageUrl"];

            [self->arraddObject:one];


        }

        [self->tablereloadData];


    }];

}

你可能感兴趣的:(解析,全局表格mu数组)