Giter VIP home page Giter VIP logo

chatdemo-ui3.00-simple's Introduction

注意

由于Git不支持上传大于100MB的文件,所以项目源码中不包含 HyphenateFullSDKHyphenateSDK动态库,下载地址https://pan.baidu.com/s/1c1RsUrA ,解压后后将HyphenateFullSDKHyphenateSDK文件夹拷贝到目录【/ChatDemo-UI3.0-Sample/ChatDemo-UI3.0/ChatSDK/】下才能正常运行。

希望支持简版Demo的童鞋能够到Github给我们一个star^_^

https://github.com/mengmakies/ChatDemo-UI3.00-Simple

源码使用文档

《IOS快速集成环信IM - 基于官方的Demo优化,5分钟集成环信IM功能》   http://www.imgeek.org/article/825307886

图片名称   图片名称

说明

本项目是基于官方 ChatDemo-UI3.0 项目的简化封装,目的是为了让大家更加方便快速地集成环信IM功能。

其他Git仓库

国内访问速度比较慢的朋友可以考虑从国内的Git仓库拉取代码: 开源**社区-**:http://git.oschina.net/markies/ChatDemo-UI3.00-Simple

奋斗目标

  1. 分离第三方依赖库,避免与开发者现有项目的其它类库发生冲突;
  2. 抽象开发者可定制化的方法或配置参数;
  3. 其它未确定的封装工作,最终目的:高内聚,低耦合;
  4. 整理开发者开始集成时反馈的常见性问题,从实际项目考虑优化SDK集成的简易度。

最终成果

1.便于开发者在新项目或现有项目快速集成环信SDK,实现聊天界面和会话列表功能,而且可以灵活地定制化一些基础模块; 2.低耦合,用尽可能少的代码集成环信功能,尽量少污染开发者的项目代码;

输入图片说明 如有任何问题,请联系QQ: 364223587


经过对ChatUIDemo-UI3.0中的源码进行分析可知,用户初次集成EaseUI时,会遇到如下几个常见问题:

问题1

引用Parse.framework、Bolts.framework时项目容易出错或出现Not found问题,其实这两个库并不是必须的,而且Facebook已经确定在2017年1月份停止提供Parse服务。
解决方案:删除Parse相关类,用 UserCacheManager替代管理用户本地缓存,用UserWebManager管理后端云缓存。

问题2

ChatDemoHelper辅助类集成了很多聊天相关界面的操作方法,开发者一般会直接复用,但是ChatDemoHelper对MainViewController的函数依赖度比较高,比如

[weakself.mainVC setupUnreadMessageCount];
[self.mainVC networkChanged:connectionState];

解决方案:(1)将ChatDemoHelper中的mainVC类型更换成UIViewController;(2).将MainController中的几个方法用通知(NSNotificationCenter)实现;

问题3

聊天相关页面与业务逻辑页面放在同一目录中,对于开发者来说,需要分拣; 解决方案:将环信相关的文件、资源统一放在【ChatUI】和【ChatSDK】目录中,方便开发者直接拖拽这两个文件夹即可快速集成聊天功能。

关于昵称和头像的问题

IOS中如何显示开发者服务器上的昵称和头像 http://community.easemob.com/article/825307855

关于发送文件功能

IOS中环信聊天窗口如何实现文件发送和预览的功能
http://www.imgeek.org/question/6260

最新解决方案草草们的忧伤:环信IM昵称和头像(使用后端云缓存http://www.imgeek.org/article/825308536

更新日志(平均每2个月同步更新环信官方SDK)

  • 2017.05... 敬请期待...
  • 2017.03.25 同步更新官方V3.3.0 版SDK;使用环信动态库;增加发送icloud文件功能;
  • 2016.12.27 同步更新官方V3.2.2r2版SDK;优化音视频通话功能,支持https;
  • 2016.10.25 同步更新官方V3.2.0版SDK;适配IOS10;使用Leancloud后端云存储用户信息;

chatdemo-ui3.00-simple's People

Contributors

mengmakies avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.