You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
1.3 KiB
65 lines
1.3 KiB
// |
|
// RailListCell.h |
|
// tongxin |
|
// |
|
// Created by WeiChaoZheng on 2018/8/17. |
|
// Copyright © 2018年 xTT. All rights reserved. |
|
// |
|
|
|
#import "TableCell.h" |
|
#import "Rail.h" |
|
#import "KJMarqueeLabel.h" |
|
|
|
typedef void(^EditingBlock)(void); |
|
typedef void(^DelectBlock)(void); |
|
typedef void(^SwitchBlock)(void); |
|
|
|
@interface RailListCell : baseCell |
|
|
|
/** |
|
对应的 围栏 |
|
*/ |
|
@property (strong, nonatomic) Rail *model; |
|
/** |
|
围栏地址 名称 eg : 学校 |
|
*/ |
|
@property (strong, nonatomic) IBOutlet KJMarqueeLabel *railNameLabel; |
|
/** |
|
规则 rg : 8:00-12:00,工作日 |
|
*/ |
|
@property (strong, nonatomic) IBOutlet UILabel *ruleLabel; |
|
/** |
|
地址 eg: 北京市朝阳区 .... |
|
*/ |
|
@property (strong, nonatomic) IBOutlet UILabel *addressLabel; |
|
|
|
|
|
/** |
|
范围 的距离显示 eg: 电子围栏 500米 |
|
*/ |
|
@property (strong, nonatomic) IBOutlet UILabel *railRangeLabel; |
|
|
|
|
|
/** |
|
删除按钮 |
|
*/ |
|
@property (strong, nonatomic) IBOutlet UIButton *delectBtn; |
|
|
|
/** |
|
编辑按钮 |
|
*/ |
|
@property (strong, nonatomic) IBOutlet UIButton *editingBtn; |
|
|
|
|
|
@property (strong, nonatomic) IBOutlet UIView *line; |
|
|
|
// 编辑回调 |
|
@property (copy, nonatomic) EditingBlock editingBlock; |
|
// 启用回调 |
|
@property (copy, nonatomic) SwitchBlock switchBlock; |
|
// 删除回调 |
|
@property (copy, nonatomic) DelectBlock deleteBlock; |
|
|
|
|
|
|
|
@end
|
|
|