美文网首页
NetRequist网络数据解析

NetRequist网络数据解析

作者: 三更夜半鬼仇天 | 来源:发表于2018-10-26 07:55 被阅读0次

    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网络数据解析

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