| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- //
- // BottomView.m
- // Haishenghai-master
- //
- // Created by 刘云鸽 on 2019/2/25.
- // Copyright © 2019年 Haishenghai intelligence network technology. All rights reserved.
- //
- #import "BottomView.h"
- @implementation BottomView
- -(instancetype)initWithFrame:(CGRect)frame{
- self = [super initWithFrame:frame];
- if (self) {
- self.allBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- _allBtn.frame = CGRectMake(10, 0, 44, self.bounds.size.height);
- _allBtn.titleLabel.font = [UIFont systemFontOfSize:14];
- [_allBtn setTitle:@"全选" forState:UIControlStateNormal];
- [_allBtn setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
- [self addSubview:_allBtn];
-
- self.deleteBtn = [UIButton buttonWithType:UIButtonTypeCustom];
- _deleteBtn.frame = CGRectMake(self.bounds.size.width-60, 0, 60, self.bounds.size.height);
- _deleteBtn.backgroundColor = [UIColor redColor];
- _deleteBtn.titleLabel.font = [UIFont systemFontOfSize:14];
- [_deleteBtn setTitle:@"删除" forState:UIControlStateNormal];
- [_deleteBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
- [self addSubview:_deleteBtn];
-
- self.selectDevLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.bounds.size.width/2, 0, 120, self.bounds.size.height)];
- self.selectDevLabel.text =@"共选中0个设备";
- self.selectDevLabel.font =[UIFont systemFontOfSize:14];
- [self addSubview:_selectDevLabel];
- }
- return self;
- }
- /*
- // Only override drawRect: if you perform custom drawing.
- // An empty implementation adversely affects performance during animation.
- - (void)drawRect:(CGRect)rect {
- // Drawing code
- }
- */
- @end
|