Skip to content

Commit

Permalink
fix(ios): setting last index of tabbedBar after initialization not work
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaysingh-axway committed Nov 11, 2019
1 parent 68d491e commit 96b8823
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions iphone/Classes/TiUIButtonBar.m
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ - (void)setIndex_:(id)value
selectedIndex = -1;
[self.proxy replaceValue:NUMINT(-1) forKey:@"index" notification:NO];
} else {
// TO DO: TIMOB-27480. Once apple fixes it, revert the changes.
[self segmentedControl].momentary = YES;
[[self segmentedControl] setSelectedSegmentIndex:selectedIndex];
[self segmentedControl].momentary = NO;
[segmentedControl setNeedsLayout];
}
}

Expand Down

0 comments on commit 96b8823

Please sign in to comment.