04 2020 档案
swift UITableView 隐藏分组的footer, 自定义footer
摘要:1.设置高度为0 tv.sectionFooterHeight = 0 2 代理footview 返回 nil func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { ret 阅读全文
posted @ 2020-04-29 09:46 懂事长qingzZ 阅读(788) 评论(0) 推荐(0)
Swift中Notification.Name自定义枚举
摘要:/// 自定义通知枚举类型 enum JYNotification: String { ///刷新员工列表 case refreshStaffList var stringValue: String { return "JY" + rawValue } /// 通知名称 var notificati 阅读全文
posted @ 2020-04-23 10:14 懂事长qingzZ 阅读(554) 评论(0) 推荐(0)
swift UITableViewCell 策划删除,iOS11之后 设置侧滑不到最左边
摘要:/**侧滑删除实现的三个方法: * canEditRowAt :设为true 才能侧滑或其他操作 * editActionsForRowAt (11之前侧滑删除) * trailingSwipeActionsConfigurationForRowAt (11之后的侧滑删除) */ //canEdit 阅读全文
posted @ 2020-04-20 17:15 懂事长qingzZ 阅读(1605) 评论(0) 推荐(0)
swift 协议protocol传值 遇到的坑
摘要:/// 基本信息协议 protocol PersonInfoProtocal { /// 员工基本信息 var name: String {set get} /// 年龄 var age: String {set get} } //模型 struct PersonStruct:PersonInfoP 阅读全文
posted @ 2020-04-16 17:04 懂事长qingzZ 阅读(327) 评论(0) 推荐(0)
jiyongTeam公司在github发布的控件
摘要:https://github.com/jiyongTeam/JYCustomSegmentView https://github.com/jiyongTeam/JYFilterView 阅读全文
posted @ 2020-04-14 13:36 懂事长qingzZ 阅读(139) 评论(0) 推荐(0)