更新时间:2024-06-28 GMT+08:00
选择联系人定制
openContactSelectWindow:scene:completeHander:
接口描述
该接口用于定制打开联系人选择窗口。
图1 定制选择联系人触发位置
注意事项
无
方法定义
1
|
- (void)openContactSelectWindow:(NSArray<HWMAttendeeInfo *> *)param scene:(HWMSelectedContactScene)scene completeHander:(void (^)(NSArray<HWMAttendeeInfo *> * _Nullable))handler ; |
参数描述
无
返回值
无
示例代码
- (void)openContactSelectWindow:(NSArray<HWMAttendeeInfo *> *)param scene:(HWMSelectedContactScene)scene completeHander:(void (^)(NSArray<HWMAttendeeInfo *> * _Nullable))handler { HWMSelectContactViewController *contact = [[HWMSelectContactViewController alloc] init]; [contact setSelectAttendeeInfoHandler:^(NSArray *attendees) { if (handler) { handler(attendees); } }]; self.selectContactVC = contact; [self presentViewControllerAsModalWindow:contact]; }
父主题: 界面定制