工单相关功能设置
KFRequests.h
注:用于创建工单视图控制器
属性说明
| 属性名称 | 类型 | 说明 |
| isShowDetailMessage | BOOL | 工单内容控制器是否显示详细信息按钮 |
方法说明
1、 初始化方法
+ (instancetype) instance;
2、 push创建工单视图控制器
+ (void) showRequestCreationWithNavController:(UINavigationController*)navController;
| 参数名称 | 类型 | 是否必填 | 说明 |
| navController | UINavigationController | 是 | 用于push创建工单视图控制器 |
3、 push创建工单视图控制器
+ (void) showRequestCreationWithNavController:(UINavigationController*)navController
withSuccess:(KFAPISuccess)success andError:(KFAPIError)error;
| 参数名称 | 类型 | 是否必填 | 说明 |
| navController | UINavigationController | 是 | 用于push创建工单视图控制器 |
| success | KFAPISuccess | 否 | 网络请求成功时返回 |
| error | KFAPIError | 否 | 网络请求失败时返回 |
4、 push创建工单视图控制器(可添加自定义字段)
+ (void) presentRequestCreationWithNavController:(UINavigationController *)navController
fieldDict:(NSDictionary *)fieldDict success:(KFAPISuccess)success andError:(KFAPIError)error;
| 参数名称 | 类型 | 是否必填 | 说明 |
| navController | UINavigationController | 是 | 用于push创建工单视图控制器 |
| fieldDict | NSDictionary | 否 | 工单自定义字段字典,如@{@"field_123":@"内容"} |
| success | KFAPISuccess | 否 | 网络请求成功时返回 |
| error | KFAPIError | 否 | 网络请求失败时返回 |
5、 push工单列表视图控制器
+ (void) showRequestListWithNavController:(UINavigationController *)navController;
| 参数名称 | 类型 | 是否必填 | 说明 |
| navController | UINavigationController | 是 | 用于push工单列表视图控制器 |
6、 push工单列表视图控制器(带actionBlock)
+ (void)showRequestListWithNavController:(UINavigationController *)navController
rightBarButtonActionBlock:(KFBarButtonActionBlock)actionBlock;
| 参数名称 | 类型 | 是否必填 | 说明 |
| navController | UINavigationController | 是 | 用于push工单列表视图控制器 |
| actionBlock | KFBarButtonActionBlock | 否 | 点击工单列表navBar右侧按钮的事件处理,为NULL直接跳转 到创建工单控制器(不带工单自定义参数) |
7、 present工单列表视图控制器
+ (void) presentRequestListWithNavController:(UINavigationController *)navController;
| 参数名称 | 类型 | 是否必填 | 说明 |
| navController | UINavigationController | 是 | 用于present工单列表视图控制器 |
8、present工单列表视图控制器(带actionBlock)
+ (void) presentRequestListWithNavController:(UINavigationController *)navController
rightBarButtonActionBlock:(KFBarButtonActionBlock)actionBlock;
| 参数名称 | 类型 | 是否必填 | 说明 |
| navController | UINavigationController | 是 | 用于present工单列表视图控制器 |
| actionBlock | KFBarButtonActionBlock | 否 | 点击工单列表navBar右侧按钮的事件处理,为NULL直接跳转 到创建工单控制器(不带工单自定义参数) |
9、 设置newRequest右侧navBarButton的图片名称
+ (void) setNewRequestBarButtonImage:(NSString *)name;
| 参数名称 | 类型 | 是否必填 | 说明 |
| name | NSString | 是 | 设置图片名称 |
10、 设置newRequest右侧navBarButton的内容
+ (void) setNewRequestBarButtonTitle:(NSString *)title;
| 参数名称 | 类型 | 是否必填 | 说明 |
| title | NSString | 是 | 设置navBarButton的内容 |
11、 设置newRequest右侧navBarButton的显示方式
+ (void) setNavBarCreateRequestUIType:(KFNavBarCreateRequestUIType)type;
| 参数名称 | 类型 | 是否必填 | 说明 |
| type | KFNavBarCreateRequestUIType | 是 | 设置navBarButton的显示方式 |
12、设置详细工单右侧的navBarButton的图片名称
+ (void) setDetailMessageBarButtonImage:(NSString *)name;
| 参数名称 | 类型 | 是否必填 | 说明 |
| name | NSString | 是 | 设置图片名称 |
13、设置详细工单右侧的navBarButton的内容
+ (void) setDetailMessageBarButtonTitle:(NSString *)title;
| 参数名称 | 类型 | 是否必填 | 说明 |
| title | NSString | 是 | 设置navBarButton的内容 |
14、设置详细工单右侧的navBarButton的显示方式
+ (void) setNavBarDetailMessageUIType:(KFNavBarDetailMessageUIType)type;
| 参数名称 | 类型 | 是否必填 | 说明 |
| type | KFNavBarDetailMessageUIType | 是 | 设置navBarButton的显示方式 |
创建工单视图UI设置
KFCreateRequestView.h
注:设置创建工单视图UI
属性说明
| 属性名称 | 类型 | 是否必填 | 说明 |
| placeholderTextColor | UIColor | 否 | placeholder的颜色 |
| placeholderText | NSString | 否 | placeholder的内容 |
| textViewColor | UIColor | 否 | textView的颜色 |
| textViewBackgroundColor | UIColor | 否 | textView的背景颜色 |
| textViewFont | UIFont | 否 | textView的字体 |
| viewBackgroundColor | UIColor | 否 | view的背景颜色 |
| attachmentButtonImage | UIImage | 否 | AttachmentButton的图片 |
| textViewHeight | CGFolat | 否 | textView的高度 |
使用说明:KFCreateRequestView遵守UIAppearance协议,设置创建工单视图UI,需使用设置外观方式设置。
如:设置textView的字体
[[KFCreateRequestView appearance]setTextViewFont:[UIFont systemFontOfSize:18.f]];
注:以后出现的View,均遵守UIAppearance协议,可以用appearance修改界面样式
反馈工单列表UI设置
KFTicketListView.h
注:设置反馈列表视图UI
属性说明
| 属性名称 | 类型 | 是否必填 | 说明 |
| cellcontentFont | UIFont | 否 | cell contentLabel的字体 |
| cellcontentColor | UIColor | 否 | cell contentLabel的颜色 |
| cellTimeFont | UIFont | 否 | cell timeLabel的字体 |
| cellTimeColor | UIColor | 否 | cell timeLabel的颜色 |
| cellStatusFont | UIFont | 否 | cell statusLabel的字体 |
| cellStatusColor | UIColor | 否 | cell statusLabel的颜色 |
| isHiddenStatusLabel | BOOL | 否 | 是否隐藏statusLabel,默认不隐藏 |
| tableBackgroundColor | UIColor | 否 | tableView的背景颜色 |
| separatorColor | UIColor | 否 | tableView seperator的颜色 |
| noResultsLabelFont | UIFont | 否 | noResultsLabel的字体 |
| noResultsLabelColor | UIColor | 否 | noResultsLabel的颜色 |
| noResultsLabelText | NSString | 否 | noResultsLabel的颜色 |
| noResultsLabelBackgroundColor | UIColor | 否 | noResultsLabel的背景颜色 |
使用说明:设置相关UI方式同KFCreateRequestView.h。
工单内容视图UI设置
KFRequestCommentTableCell.h
注:设置工单内容cell的UI
属性说明
| 属性名称 | 类型 | 是否必填 | 说明 |
| headImageView | UIImageView | 无 | 头像 |
| timeLabel | UILabel | 无 | 时间 |
| nameLabel | UILabel | 无 | 角色 |
| ctnTextView | UITextView | 无 | 内容 |
| headerImage | UIImage | 无 | 头像 |
| avatar | UIImage | 否 | avatar的image |
| avatarSpace | NSNumber | 否 | 附件之间的间距 |
| nameLabelFont | UIFont | 否 | nameLabel的字体 |
| nameLabelColor | UIColor | 否 | nameLabel的颜色 |
| contentFont | UIFont | 否 | contentLabel的字体 |
| contentColor | UIColor | 否 | contentLabel的颜色 |
| timeLabelFont | UIFont | 否 | timeLabel的字体 |
| timeLabelColor | UIColor | 否 | timeLabel的颜色 |
| cellBackgroundColor | UIColor | 否 | cell的背景颜色 |
使用说明:KFAgentCommentTableCell和 KFEndUserCommentTableCell是KFRequestCommentTableCell的子类,
单独设置客服或用户的cell使用KFAgentCommentTableCell和 KFEndUserCommentTableCell,设置统一样式则可使KFRequestCommentTableCell。
设置相关UI方式同KFCreateRequestView.h。
工单详细信息视图UI设置
KFDetailMessageTableViewCell.h
注:设置工单详细信息cell的相关UI
属性说明
| 属性名称 | 类型 | 是否必填 | 说明 |
| titleLabel | UILabel | 无 | 标题 |
| contentLabel | UILabel | 无 | 内容 |
| titleFont | UIFont | 否 | titleLabel的字体 |
| titleColor | UIColor | 否 | titleLabel的颜色 |
| contentFont | UIFont | 否 | titleLabel的颜色 |
| contentColor | UIColor | 否 | titleLabel的颜色 |
| cellBackgroundColor | UIColor | 否 | cell的背景颜色 |
使用说明:设置相关UI方式同KFCreateRequestView.h。