| | |
| | | [super layoutSubviews]; |
| | | |
| | | self.deviceName.frame = CGRectMake(20+20, 10, SCREEN_WIDTH/2, 20); |
| | | self.deviceLink.frame = CGRectMake(SCREEN_WIDTH-40, 10, SCREEN_WIDTH/3, 20); |
| | | self.deviceLink.frame = CGRectMake(SCREEN_WIDTH-100-20, 10, 100, 20); |
| | | self.imageTag.frame = CGRectMake(20, 15, 10, 10); |
| | | } |
| | | |
| | |
| | | _deviceLink = [[GloriaLabel alloc] initWithFrame:CGRectMake(10+50+10+80, 28,150, 14)]; |
| | | _deviceLink.font = [UIFont systemFontOfSize:16]; |
| | | _deviceLink.textAlignment = UITextAlignmentRight; |
| | | _deviceLink.textColor = kUIColorFromRGB(0x5a5a5a); |
| | | _deviceLink.textColor = [UIColor redColor]; |
| | | [self.contentView addSubview:_deviceLink]; |
| | | } |
| | | |
| | | return _deviceLink; |
| | | } |
| | | |
| | | - (void)setItemView:(DeviceSpareModel*)model |
| | | - (void)setItemView:(NSString *) bleName |
| | | { |
| | | self.imageTag.image = [UIImage imageNamed:@"icon_lanya_tag"]; |
| | | [self.deviceName setText:@"USR-BLE101"]; |
| | | [self.deviceLink setText:@"链接"]; |
| | | [self.deviceName setText:bleName]; |
| | | [self.deviceLink setText:@"链接 >"]; |
| | | } |
| | | |
| | | @end |