Similar to basic functions. XMPP-based instant messaging and dating clients.
---- The functions of the first code are as follows ----
1. New User Registration
2. log in and connect to the XMPP server, and keep the handshake online.
2. Search for the latest registered users: (pull down and refresh to pull pages, and do a little rush, no operation prompt)
3. Click a user to send messages to the user (the next update of the chat record)
4. The home page displays all received and sent messages (sorting and group next update)
---- Content updated in Phase II ----
1. Fixed the registration delay time, added the account switching function, and fixed the input box adaptation problem.
2. The page and chat page have been basically redone. On the homepage, messages are displayed in reverse chronological order by Contact Group, and chat bubbles need to be optimized. NSNotifaction is used for sending and receiving messages, so you don't have to worry about the page refreshing when messages are sent. Automatically rolls to the latest one. The keyboard listening effect is more friendly, and TableViewInset is used for misplacement.
3. after adding a friend, you can view it in the friend list. If it is too early to be registered, or the newly registered user cannot be refreshed, you can directly add it through webview, however, you must go to the console to view the IDs of each other.
4. the User object and Message object are solidified using the Dao mode of FMDB + java class and static method, and there are two very useful methods for developers to write their own objects to dictionary and dictionary to object, let's take a look!
5. deleted some nonsense and unnecessary content in the XMPPManager Singleton, added many comments, and you can read them in detail.
---- Content updated in the third phase ----
1. Added support for sending and receiving offline images;
2. optimized the input box and implemented shareMore in the form of custom Input Panel (share more );
3. The two modes of sending images are implemented. They are uploaded to the server through http and then forwarded to the URL (commented out). The image is directly encoded and decoded using base64 code, and both modes support offline sending and receiving.
Since the author has not adapted the screen, run the code in the Retina 4-inch simulator or iPhone 5.
---- Functions of Stage 4 Code are as follows ----
1. Fix most bugs
2. Better ios7 experience
3. Image/text chat is not flushed
4. Support fuzzy search by nickname, making it easier to find friends
5. Fixed the connection failure caused by domain name loss. Now the server can be connected 24 hours a day.
6. More accurate prompt information and better user experience
PS: 1 ~ User Data in phase 3 has been cleared. Please register again if you need to try
The author said: I have already written the demo and configured the openfire server. If you want to run the demo, determine whether the server is enabled (API port 8080, openfire port 5225), ping www.hcios.com. If QQ is not enabled, the general start time is ~
It is estimated that the XMPP Demo can no longer be found on the Internet, which is better than the one I wrote. The purpose of uploading this demo is to show more friends about instant messaging technology, please allow me to ask you not to use this demo for commercial purposes. Thank you. Source code download: http://code.662p.com/view/5849.html <Ignore_js_op> <Ignore_js_op> <Ignore_js_op>
|