From 4c30084ed22976f732b9f4c1f7776a5c57f81000 Mon Sep 17 00:00:00 2001 From: jersey Date: Mon, 30 Jul 2018 12:30:29 +0800 Subject: [PATCH] fix #173, Fix compilation error 1. Override the parent class method --- Classes/WDAnglePicker.m | 2 ++ Classes/WDColorSlider.m | 2 ++ Classes/WDEventForwardingView.m | 2 ++ Classes/WDGradientEditor.m | 2 ++ Classes/WDLayerCell.m | 2 ++ Classes/WDLineAttributePicker.m | 2 ++ Classes/WDSparkSlider.m | 2 ++ 7 files changed, 14 insertions(+) diff --git a/Classes/WDAnglePicker.m b/Classes/WDAnglePicker.m index 4501d10..c0bad7e 100644 --- a/Classes/WDAnglePicker.m +++ b/Classes/WDAnglePicker.m @@ -21,6 +21,8 @@ @implementation WDAnglePicker - (void) awakeFromNib { + [super awakeFromNib]; + self.exclusiveTouch = YES; self.layer.shadowOpacity = 0.15f; diff --git a/Classes/WDColorSlider.m b/Classes/WDColorSlider.m index ecbe99e..b3359b3 100644 --- a/Classes/WDColorSlider.m +++ b/Classes/WDColorSlider.m @@ -99,6 +99,8 @@ @implementation WDColorSlider - (void) awakeFromNib { + [super awakeFromNib]; + indicator_ = [WDColorIndicator colorIndicator]; indicator_.sharpCenter = WDCenterOfRect([self bounds]); [self addSubview:indicator_]; diff --git a/Classes/WDEventForwardingView.m b/Classes/WDEventForwardingView.m index 596f9d8..60a92d4 100644 --- a/Classes/WDEventForwardingView.m +++ b/Classes/WDEventForwardingView.m @@ -18,6 +18,8 @@ @implementation WDEventForwardingView - (void) awakeFromNib { + [super awakeFromNib]; + self.opaque = NO; self.backgroundColor = nil; } diff --git a/Classes/WDGradientEditor.m b/Classes/WDGradientEditor.m index a482bb9..a009900 100644 --- a/Classes/WDGradientEditor.m +++ b/Classes/WDGradientEditor.m @@ -29,6 +29,8 @@ @implementation WDGradientEditor - (void) awakeFromNib { + [super awakeFromNib]; + indicators_ = [[NSMutableArray alloc] init]; self.gradient = [WDGradient defaultGradient]; diff --git a/Classes/WDLayerCell.m b/Classes/WDLayerCell.m index 3c6c0b1..07db3ca 100644 --- a/Classes/WDLayerCell.m +++ b/Classes/WDLayerCell.m @@ -27,6 +27,8 @@ @implementation WDLayerCell - (void) awakeFromNib { + [super awakeFromNib]; + [visibleButton addTarget:self action:@selector(toggleVisibility:) forControlEvents:UIControlEventTouchUpInside]; [lockButton addTarget:self action:@selector(toggleLocked:) forControlEvents:UIControlEventTouchUpInside]; diff --git a/Classes/WDLineAttributePicker.m b/Classes/WDLineAttributePicker.m index 2124e5d..ffd5600 100644 --- a/Classes/WDLineAttributePicker.m +++ b/Classes/WDLineAttributePicker.m @@ -209,6 +209,8 @@ - (void) setMode:(WDStrokeAttributes)mode - (void) awakeFromNib { + [super awakeFromNib]; + self.backgroundColor = nil; self.opaque = NO; } diff --git a/Classes/WDSparkSlider.m b/Classes/WDSparkSlider.m index 32b5ca6..0526d46 100644 --- a/Classes/WDSparkSlider.m +++ b/Classes/WDSparkSlider.m @@ -28,6 +28,8 @@ @implementation WDSparkSlider - (void) awakeFromNib { + [super awakeFromNib]; + self.opaque = NO; self.backgroundColor = nil;