当前知识库站点已不再维护。请移步新版知识库:https://help.rongcloud.cn/

IMKit SDK 中按钮颜色的修改

IMKit 库 UI 界面中按钮颜色的修改
发布时间: 2019-06-19 10:17

回答:

## SDK中各按钮颜色及资源替换

  • 下文中 color.plist 文件路径:IMKit/Resources/RCColor.plist

  • 图片资源路径:IMKit/Resources/Rongcloud.bundle



### 相册列表页面:

  • 左上、右上角按钮:可通过设置 UIBarButtonItem 的全局 tintColor 来更改。

  • 其它按钮:可通过 color.plist 中 photoPicker 字典里的相关字段来更改。

  • 图片右上角点击选中按钮:可通过替换图片资源中的 photopicker_state_normalphotopicker_state_selected 来更改。


### 相册预览页面:

  • 左上角返回按钮:可通过替换图片资源中的 navigator_btn_back 来更改。

  • 右上角选择按钮:可通过替换图片资源中的 photo_preview_unselectedphoto_preview_selected 来更改。

  • 其它按钮:可通过 color.plist 中 photoPreview 字典里的相关字段来更改。

  • 选中发送原图时文字前面的选中状态:可通过替换图片资源中的 selected_fullunselected_full 来更改。


### 位置选取页面:

  • 左上、右上角按钮:可通过设置  RCKitConfigCenter.ui.globalNavigationBarTintColor 来更改。


### 发送文件页面:

  • 左上、右上角按钮:可通过设置  RCKitConfigCenter.ui.globalNavigationBarTintColor 来更改。

  • 右上角按钮未选择文件时颜色:可通过 color.plist 中 fileSelect 字典里的相关字段来更改。

  • 右上角按钮选中文件时的颜色:可通过设置  RCKitConfigCenter.ui.globalNavigationBarTintColor 来更改。


### 群组中发起音视频通话时的选人页面:

  • 左上、右上角按钮:可通过设置全局的 UIBarButtonItemtintColor 来更改。


### 个人名片页

  • 左上角按钮:可通过设置  RCKitConfigCenter.ui.globalNavigationBarTintColor 来更改。