响应式即时通讯UI设计

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

+ (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);
}