Skip to content

Commit

Permalink
Fixed minor localization bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Einstein authored and 0xced committed Aug 19, 2011
1 parent 40837f6 commit 0c06877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DCRoundSwitch/DCRoundSwitch.m
Expand Up @@ -104,7 +104,7 @@ - (void)setup
// this is the knob, and sits on top of the layer stack. note that the knob shadow is NOT drawn here, it is drawn on the
// toggleLayer so it doesn't bleed out over the outlineLayer.

toggleLayer = [[DCRoundSwitchToggleLayer alloc] initWithOnString:@"ON" offString:@"OFF" onTintColor:[UIColor colorWithRed:0.000 green:0.478 blue:0.882 alpha:1.0]];
toggleLayer = [[DCRoundSwitchToggleLayer alloc] initWithOnString:self.onText offString:self.offText onTintColor:[UIColor colorWithRed:0.000 green:0.478 blue:0.882 alpha:1.0]];
toggleLayer.drawOnTint = NO;
toggleLayer.clip = YES;
[self.layer addSublayer:toggleLayer];
Expand Down

0 comments on commit 0c06877

Please sign in to comment.