1.官网文档
2.因为集成了UI库,新建控制器继承TUIContactController,调取好友列表接口获取数据
[[TIMFriendshipManager sharedInstance] getFriendList:^(NSArray<TIMFriend *> *friends) {
[IHUtility removeWaitingView];
for (TIMFriend *friend in friends) {
TCommonContactCellData *data = [[TCommonContactCellData alloc] initWithFriend:friend];
data.avatarUrl = [NSURL URLWithString:friend.profile.faceURL];
[_dataArray addObject:data];
}
self.dataScource = _dataArray;
} fail:nil];
关键代码:
[[TIMFriendshipManager sharedInstance] modifyFriend:self.idendientID values:@{ TIMFriendTypeKey_Remark: _tellPhone.text} succ:^{
[self performSelector:@selector(delayMethod) withObject:nil afterDelay:2.0];
} fail:^(int code, NSString *msg) {
[IHUtility removeWaitingView];
[WHToast showMessage:@"修改失败,请重新修改!" duration:1.5f finishHandler:^{}];
}];
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有