IOS integrates the huanxin chat interface, which is a perfect choice for ios users.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.