leancloud / ChatKit-OC

此项目已经废弃,以后不再维护。我们推出了基于 Swift SDK 的 Chat Demo。

Home Page:https://github.com/leancloud/swift-sdk-demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

继承了LCCKConversationViewController导致bundle加载不到

mokai opened this issue · comments

commented

Base Info for this issue

继承了LCCKConversationViewController导致部分依赖[self class]来取bundle的代码取不到。
如LCCKConversationViewController.m 行914 didTapLinkText方法中取Alert的title使用了LCCKLocalizedStrings,其定义

NSLocalizedStringFromTableInBundle(key, @"LCChatKitString", [NSBundle lcck_bundleForName:@"Other" class:[self class]], nil)

改成以下代码后正常

NSLocalizedStringFromTableInBundle(key, @"LCChatKitString", [NSBundle lcck_bundleForName:@"Other" class:[LCChatKit class]], nil)
  1. ChatKit Version:0.8.5
  2. App-ID: XX
  3. Language:Swift
  4. iOS System Version:iOS10
  5. Prototype(是否是真机):YES
  6. Issue Type:Crash、Bug、Enhancement(希望能支持一个新需求)、Q-A

1. How to repeat the problem.

2. Please help me in this way.

3. Here is a Demo.

4. Here is my Debug log

的确有这个问题,建议提pr吧。

commented

#352 已提PR

fix in CYLChatKit https://github.com/ChenYilong/CYLChatKit/releases

changelog:

2.1.1 update voice message send UI same to wechat