美文网首页
解析,全局表格mu数组

解析,全局表格mu数组

作者: 阙年 | 来源:发表于2018-07-30 01:22 被阅读0次

    #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数组

          本文链接:https://www.haomeiwen.com/subject/ggcxvftx.html