NetRequist网络数据解析


    NSDictionary *dic=@{@"pageNum":@(1),@"userId":@(10)};

http://123.126.40.109:7003/asmr/videos/A1100101.shtml

  [NetRequestManager requestWithUrl:@"网址" withRequestType:GET (请求发方式)postParameters:nil(拼接) success:^(NSDictionary *resDict) {
     
        }];}
 failure:^(NSError *error) {
        //网络请求失败
        NSLog(@"数据请求失败:%@",error);
    }];
数组,字典,字符串 转换模型 
MJextension
self. 数组=[ 模型名称  mj_objectArrayWithKeyValuesArray]
self.player=[[ZSPlayerView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_WIDTH*4/7) delegate:self url:self.model.fileUrl];
    [self.headerPlayView addSubview:self.player];

你可能感兴趣的:(NetRequist网络数据解析)