IOS integrates the huanxin chat interface, which is a perfect choice for ios users.
Currently, many instant messaging services use huanxin, but some projects do not need to access all interfaces. For example, we usually put them in the background for logon.
Now we integrate the chat interface of huanxin into our project.
1. Create a project and import the dependent libraries and sdks of huanxin to the project,
Add a pch file,
Change the project's Other Linker Flags to-ObjC.
2. Import the following demo files to the project:
3 rdparty,
Category,
Custom,
Resources,
Class-> Chat-> ChatView,
And its define file ChatDemoUIDefine. h
3. Import the header file in the pch File
# Import "EaseMob. h"
# Import "UIViewController + HUD. h"
# Import "ChatDemoUIDefine. h"
# Import "EMAlertView. h"
4. Compile and comment out the group chat code in ChatViewController. m.
Compile it again. If you cannot ask me, I may have forgotten some steps.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.