响应式即时通讯UI设计

下面是来客网 jb51.cc 通过网络收集整理的代码片段。

来客网小编现在分享给大家,也给大家做个参考。

+ (NSDictionary *)chatCellIdentifierDict
{
    return @{
             
             @"GJGCChatFriendTextMessageCell" : @"GJGCChatFriendTextMessageCellIdentifier",@"GJGCChatFriendAudioMessageCell" : @"GJGCChatFriendAudioMessageCellIdentifier",@"GJGCChatFriendImageMessageCell" : @"GJGCChatFriendImageMessageCellIdentifier",@"GJGCChatFriendMiniMessageCell" : @"GJGCChatFriendMiniMessageCellIdentifier",@"GJGCChatFriendPostMessageCell" : @"GJGCChatFriendPostMessageCellIdentifier",@"GJGCChatFriendTimeCell" : @"GJGCChatFriendTimeCellIdentifier",@"GJGCChatFriendMemberWelcomeCell": @"GJGCChatFriendMemberWelcomeCellIdentifier",@"GJGCChatFriendGroupCallCell": @"GJGCChatFriendGroupCallCellIdentifier",@"GJGCChatFriendAcceptGroupCallCell": @"GJGCChatFriendAcceptGroupCallCellIdentifier",@"GJGCChatFriendGifCell": @"GJGCChatFriendGifCellIdentifier",@"GJGCChatFriendDriftBottleCell": @"GJGCChatFriendDriftBottleCellIdentifier",};
    
}

+ (NSDictionary *)chatCellContentTypeDict
{
    return @{
             
             @(GJGCChatFriendContentTypeText) : @"GJGCChatFriendTextMessageCell",@(GJGCChatFriendContentTypeAudio) : @"GJGCChatFriendAudioMessageCell",@(GJGCChatFriendContentTypeImage) : @"GJGCChatFriendImageMessageCell",@(GJGCChatFriendContentTypeMini) : @"GJGCChatFriendMiniMessageCell",@(GJGCChatFriendContentTypePost) : @"GJGCChatFriendPostMessageCell",@(GJGCChatFriendContentTypeTime) : @"GJGCChatFriendTimeCell",@(GJGCChatFriendContentTypeMemberWelcome) : @"GJGCChatFriendMemberWelcomeCell",@(GJGCChatFriendContentTypeGroupCall) : @"GJGCChatFriendGroupCallCell",@(GJGCChatFriendContentTypeReplyGroupCall) : @"GJGCChatFriendAcceptGroupCallCell",@(GJGCChatFriendContentTypeGif) : @"GJGCChatFriendGifCell",@(GJGCChatFriendContentTypeDriftBottle) : @"GJGCChatFriendDriftBottleCell",};
}

+ (NSString *)identifierForCellClass:(NSString *)className
{
    return  [[GJGCChatFriendConstans chatCellIdentifierDict]objectForKey:className];
}

+ (Class)classForContentType:(GJGCChatFriendContentType)contentType
{
    NSString *className = [[GJGCChatFriendConstans chatCellContentTypeDict]objectForKey:@(contentType)];
    
    return NSClassFromString(className);
}

以上是来客网(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。

以上是来客网为你收集整理的响应式即时通讯UI设计全部内容,希望文章能够帮你解决响应式即时通讯UI设计所遇到的程序开发问题。

如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。