iOS Ring Letter

Source: Internet
Author: User

Work nearly one months, the fledgling I write here in this nearly one months in the programming encountered problems, hope to help everyone, if there is wrong place also please help correct me, thank you!

This is the main introduction of the ring letter, before the contact, when assigned to this task I did not counsel, if I think this life also can not succeed, since the eldest brother believe me, I also want to make a look.

Nonsense but say, start to enter the theme, first encountered a third party things, the first reaction is to look at the document under demo http://docs.easemob.com/ Docs.php,demo for the first contact people may look very laborious, I suggest to read the document first, some of the basic use of the document is already very detailed, the first is to integrate the ring server side, step by step do not have problems, here I recommend using Pod to manage the third party, it is very convenient to use http://www.devtang.com/blog/2014/05/25/use-cocoapod-to-manage-ios-lib-dependency/here is the use of pod, Tang Qiao Great God introduced the already very detailed, To watch their own, the next is to write code integration of some basic functions, such as: registration, login, add friends, delete friends, and so on ... Documents introduced in detail or self-view, really does not appear to be the problem, in fact, in my opinion the most important or logical, or to know the correct process, such as: Set up the agent only need to set in the Appdelegate file, after receiving the message, in the callback method in the corresponding processing, such as to do local push

And then send a message to the notification, told the chat controller received a message, and then do the corresponding operation, the message is added to the array in the TableView display, the advantage is that there is no need to chat controller also as a proxy, so that the controller can receive messages, Of course, you can also make a controller to be a proxy. However, it is important to note that the Viewdiddisappeared method is removed from the agent, no one may affect other agents to receive messages.

OK, the first version of the chat this is relatively small, next will be integrated with other features, I believe that as long as the logic to master its next work will be too difficult, as the saying goes to the beginning difficult, refueling, I have no problem, you will certainly be able to do.

iOS Ring Letter

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.