Skip to content

Commit

Permalink
User is responsible for setting an index.
Browse files Browse the repository at this point in the history
If the value-changed signal is connected through Interface Builder, then when
the valid angles are set in viewDidLoad, the value-changed signal is triggered
even though there was no user interaction or a call to setSelectedIndex:.
  • Loading branch information
Slobodan Pejic authored and pejic committed Sep 12, 2013
1 parent 0ccb8fe commit 72630e7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Classes/SPRotarySwitch.m
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ -(void) setValidAngles: (NSArray*) va
[validAngles release];
validAngles = va;
[self updateMinMax];
[self setSelectedIndex: 0];
[self setDefaultSelectedIndex: [self defaultSelectedIndex]];
}

Expand Down

0 comments on commit 72630e7

Please sign in to comment.