// TUIContactConfig.htypedef NS_OPTIONS(NSInteger, TUIContactConfigItem) {TUIContactConfigItem_None = 0,TUIContactConfigItem_Alias = 1 << 0,TUIContactConfigItem_MuteAndPin = 1 << 1,TUIContactConfigItem_Background = 1 << 2,TUIContactConfigItem_Block = 1 << 3,TUIContactConfigItem_ClearChatHistory = 1 << 4,TUIContactConfigItem_Delete = 1 << 5,TUIContactConfigItem_AddFriend = 1 << 6,};/*** Hide items in contact config interface.*/- (void)hideItemsInContactConfig:(TUIContactConfigItem)items;
// When to call: Before initializing contact setting interface.// Valid for contacts.[[TUIContactConfig sharedConfig] hideItemsInContactConfig:TUIContactConfigItem_Block|TUIContactConfigItem_ClearChatHistory|TUIContactConfigItem_Delete];// Valid for strange users who have not been added to the contact.[[TUIContactConfig sharedConfig] hideItemsInContactConfig:TUIContactConfigItem_AddFriend];
隐藏部分选项 | 隐藏全部选项 | 默认 |
| | |
隐藏添加好友 | 默认 |
| |
本页内容是否解决了您的问题?