NSDictionary *dic=@{@"pageNum":@(1),@"userId":@(10)};
http://123.126.40.109:7003/asmr/videos/A1100101.shtml
[NetRequestManager requestWithUrl:@"網(wǎng)址" withRequestType:GET (請求發(fā)方式)postParameters:nil(拼接) success:^(NSDictionary *resDict) {
}];}
failure:^(NSError *error) {
//網(wǎng)絡(luò)請求失敗
NSLog(@"數(shù)據(jù)請求失敼衔睢:%@",error);
}];
數(shù)組,字典,字符串 轉(zhuǎn)換模型
MJextension
self. 數(shù)組=[ 模型名稱 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];
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者