Skip to content

Commit

Permalink
fix sprang#173, Fix compilation error
Browse files Browse the repository at this point in the history
1. Override the parent class method
  • Loading branch information
jersey committed Jul 30, 2018
1 parent fea84e3 commit 4c30084
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Classes/WDAnglePicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ @implementation WDAnglePicker

- (void) awakeFromNib
{
[super awakeFromNib];

self.exclusiveTouch = YES;

self.layer.shadowOpacity = 0.15f;
Expand Down
2 changes: 2 additions & 0 deletions Classes/WDColorSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ @implementation WDColorSlider

- (void) awakeFromNib
{
[super awakeFromNib];

indicator_ = [WDColorIndicator colorIndicator];
indicator_.sharpCenter = WDCenterOfRect([self bounds]);
[self addSubview:indicator_];
Expand Down
2 changes: 2 additions & 0 deletions Classes/WDEventForwardingView.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ @implementation WDEventForwardingView

- (void) awakeFromNib
{
[super awakeFromNib];

self.opaque = NO;
self.backgroundColor = nil;
}
Expand Down
2 changes: 2 additions & 0 deletions Classes/WDGradientEditor.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ @implementation WDGradientEditor

- (void) awakeFromNib
{
[super awakeFromNib];

indicators_ = [[NSMutableArray alloc] init];
self.gradient = [WDGradient defaultGradient];

Expand Down
2 changes: 2 additions & 0 deletions Classes/WDLayerCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
2 changes: 2 additions & 0 deletions Classes/WDLineAttributePicker.m
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,8 @@ - (void) setMode:(WDStrokeAttributes)mode

- (void) awakeFromNib
{
[super awakeFromNib];

self.backgroundColor = nil;
self.opaque = NO;
}
Expand Down
2 changes: 2 additions & 0 deletions Classes/WDSparkSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ @implementation WDSparkSlider

- (void) awakeFromNib
{
[super awakeFromNib];

self.opaque = NO;
self.backgroundColor = nil;

Expand Down

0 comments on commit 4c30084

Please sign in to comment.