|
|
|
|
|
|
|
|
NSLog(@"Kai: Updating cell: %@ for device:%@", cell, device); |
|
|
NSLog(@"Kai: Updating cell: %@ for device:%@", cell, device); |
|
|
} else if(![self.displayingDevices containsObject:deviceName]) { |
|
|
} else if(![self.displayingDevices containsObject:deviceName]) { |
|
|
KAIBatteryCell *newCell = [[KAIBatteryCell alloc] initWithFrame:CGRectMake(0, y, self.frame.size.width, bannerHeight) device:device]; |
|
|
KAIBatteryCell *newCell = [[KAIBatteryCell alloc] initWithFrame:CGRectMake(0, y, self.frame.size.width, bannerHeight) device:device]; |
|
|
[self.superview addSubview:newCell]; |
|
|
|
|
|
|
|
|
[self addSubview:newCell]; |
|
|
[self.displayingDevices addObject:deviceName]; |
|
|
[self.displayingDevices addObject:deviceName]; |
|
|
//y+=bannerHeight + spacing; |
|
|
//y+=bannerHeight + spacing; |
|
|
NSLog(@"Kai: Added cell: %@ for device:%@", cell, device); |
|
|
NSLog(@"Kai: Added cell: %@ for device:%@", cell, device); |