File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -684,9 +684,6 @@ - (void)setItemAtIndex:(NSInteger)index selected:(BOOL)selected
684684 // Tell the segment to select itself in order to show the reversible arrow
685685 TOSegmentedControlSegment *segment = self.segments [index];
686686
687- // Update the segment state
688- segment.isSelected = selected;
689-
690687 // Update the alpha of the reversible arrow
691688 segment.arrowView .alpha = selected ? kTOSegmentedControlDirectionArrowAlpha : 0 .0f ;
692689
@@ -1077,7 +1074,7 @@ - (void)setItems:(NSArray *)items
10771074- (void )setCornerRadius : (CGFloat)cornerRadius
10781075{
10791076 self.trackView .layer .cornerRadius = cornerRadius;
1080- self.thumbView .layer .cornerRadius = (cornerRadius - _thumbInset) + 0 . 5f ;
1077+ self.thumbView .layer .cornerRadius = (self. cornerRadius - _thumbInset) + 1 . 0f ;
10811078}
10821079
10831080- (CGFloat)cornerRadius { return self.trackView .layer .cornerRadius ; }
@@ -1249,7 +1246,7 @@ - (void)setSelectedTextFont:(UIFont *)selectedTextFont
12491246- (void )setThumbInset : (CGFloat)thumbInset
12501247{
12511248 _thumbInset = thumbInset;
1252- self.thumbView .layer .cornerRadius = (self.cornerRadius - _thumbInset) + 0 . 5f ;
1249+ self.thumbView .layer .cornerRadius = (self.cornerRadius - _thumbInset) + 1 . 0f ;
12531250}
12541251
12551252// -----------------------------------------------
You can’t perform that action at this time.
0 commit comments