XBChatModule 0.1.2.2

XBChatModule 0.1.2.2

测试已测试
语言语言 Obj-CObjective C
许可协议 MIT
发布时间最新发布2014年12月

Eugene Nguyen维护。



 
依赖关系
XMPPFramework>= 0
JSQMessagesViewController>= 0
SDWebImage>= 0
 

XBChatModule 0.1.2.2

关于

您是否厌倦了安装聊天模块需要上百行代码?我们在此提供帮助。

XBChatModule是一个简单易用的模块,用于实现与Jabber服务器集成的聊天模块。只需4行配置即可使用

[[XBChatModule sharedInstance] setUsername:@"username"];
[[XBChatModule sharedInstance] setPassword:@"password"];
[[XBChatModule sharedInstance] setHost:@"chat.example.com"];
[[XBChatModule sharedInstance] connect];

我们也提供了您所需的其它配置:)

[[XBChatModule sharedInstance] setAvatarFormat:@"http://chat.example.com/avatar/%@"];
[[XBChatModule sharedInstance] setAvatarPlaceHolder:[UIImage imageNamed:@"girl_9"]];

这就是您所需的所有内容:)

显示chatViewController

XBMessageViewController *messageViewController = [[XBMessageViewController alloc] init];
messageViewController.jidStr = @"[email protected]";
[self.navigationController pushViewController:messageViewController animated:YES];

XBChatModule是LIBRETeamStudio的作品。

使用方法

要运行示例项目,首先克隆仓库,然后在示例目录中运行pod install

需求

安装

作者

eugenenguyen,[email protected]

联系方式

有任何疑问、请求或建议,请随时联系我们。您始终是受欢迎的。

LIBRETeamStudio

许可协议

XBChatModule遵循MIT许可协议。有关更多信息,请参阅LICENSE文件。

捐赠

这是一个开源项目。如果您希望支持我们继续开发本项目,或者仅仅想请我喝杯啤酒,请不要犹豫:)我将始终感激不尽。