From 30b8b36553076292479bf4631bb0185dcc602128 Mon Sep 17 00:00:00 2001 From: bellchen Date: Wed, 30 Sep 2015 14:43:10 +0800 Subject: [PATCH] better way to fix #58 --- Source/DZNSegmentedControl.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/DZNSegmentedControl.m b/Source/DZNSegmentedControl.m index ce32e54..94f8344 100644 --- a/Source/DZNSegmentedControl.m +++ b/Source/DZNSegmentedControl.m @@ -536,6 +536,7 @@ - (void)setSelectedSegmentIndex:(NSInteger)segment animated:(BOOL)animated void (^completion)(BOOL finished) = ^void(BOOL finished){ self.userInteractionEnabled = YES; _transitioning = NO; + [self.buttons[segment] setSelected:YES]; }; if (animated) {