Server code to fetch and toggle devices

This commit is contained in:
Charles Magahern
2015-12-31 19:51:51 -08:00
parent e85e9173e5
commit e6dd661338
11 changed files with 402 additions and 44 deletions
+13 -1
View File
@@ -175,7 +175,7 @@ public class WemoDeviceCellView: WemoCellView {
}
public class WemoActionCellView: WemoCellView {
public var textLabel: UILabel = UILabel()
var textLabel: UILabel = UILabel()
override init(frame: CGRect)
{
@@ -197,4 +197,16 @@ public class WemoActionCellView: WemoCellView {
super.layoutSubviews()
self.textLabel.frame = self.bounds
}
var enabled: Bool = true
{
didSet
{
if (enabled) {
self.textLabel.textColor = UIColor.whiteColor()
} else {
self.textLabel.textColor = UIColor.darkGrayColor()
}
}
}
}