FCChatHeads
https://github.com/rajatgupta26/fk-ios-chatheads
Library to use chat heads within your iOS app with complete physics and animations which drive multi user chat behaviour to support collapsed/stacked or expanded states.
如gif图所示,论文,本示例demo可以在iOS应用程序中,开题报告,构造具有完整的物理和动画,驱动多会员聊天行为以支持折叠/堆叠或展开状态的聊天头像控件。
DemoUsageTo run the example project, clone the repo, and run pod install from the Example directory first.
InstallationFCChatHeads is available through CocoaPods. To install
it, simply add the following line to your Podfile:
Include the following import in your file
#import <FCChatHeads/FCChatHeads.h>To present chat head with image[ChatHeadsController presentChatHeadWithImage:<UIImage instance> chatID:<Unique identifier>];To present chat head with view[ChatHeadsController presentChatHeadWithView:<UIView instance> chatID:<Unique identifier>];To set badge count on chat head[ChatHeadsController setUnreadCount:<Unread count> forChatHeadWithChatID:<Unique identifier>];To show view in popover on chat head selectionSet datasource for ChatHeadsController
ChatHeadsController.datasource = <datasource>;Return view from callback
- (UIView *)chatHeadsController:(FCChatHeadsController *)chatHeadsController viewForPopoverForChatHeadWithChatID:(NSString *)chatID { UIView *view = <Create view for presentation>; return view; }Refer FCChatHeadsController.h for more information on how to present or dismiss or hide chatheads.
For information on callbacks refer FCChatHeadsControllerDatasource and FCChatHeadsControllerDelegate protocols in FCChatHeadsController.h
Also checkout code in FCViewController.m
AuthorRajat Gupta, rajat.g@flipkart.com