diff --git a/TTSwitch-Example/TTXibViewController.xib b/TTSwitch-Example/TTXibViewController.xib index 2a79874..90d30ea 100644 --- a/TTSwitch-Example/TTXibViewController.xib +++ b/TTSwitch-Example/TTXibViewController.xib @@ -1,254 +1,35 @@ - - - - 1552 - 12C3012 - 3084 - 1187.34 - 625.00 - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - 3084 - - - IBNSLayoutConstraint - IBProxyObject - IBUIView - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - PluginDependencyRecalculationVersion - - - - - IBFilesOwner - IBCocoaTouchFramework - - - IBFirstResponder - IBCocoaTouchFramework - - - - 306 - - - - 292 - {{122, 260}, {76, 28}} - - _NS:9 - - 3 - MCAwAA - - {{1.3877787807814457e-17, 0}, {1, 1}} - IBCocoaTouchFramework - - - {{0, 20}, {320, 548}} - - - - 3 - MQA - - 2 - - - - - IBUIScreenMetrics - - YES - - - - - - {320, 568} - {568, 320} - - - IBCocoaTouchFramework - Retina 4 Full Screen - 2 - - IBCocoaTouchFramework - - - - - - - view - - - - 3 - - - - defaultSwitch - - - - 30 - - - - - - 0 - - - - - - 1 - - - - - 5 - 0 - - 5 - 1 - - 122 - - 1000 - - 3 - 9 - 3 - - - - 3 - 0 - - 3 - 1 - - 260 - - 1000 - - 3 - 9 - 3 - - - - 10 - 0 - - 10 - 1 - - 0.0 - - 1 - - 9 - 40 - 2 - - - - 9 - 0 - - 9 - 1 - - 0.0 - - 1 - - 9 - 40 - 2 - - - - - - - -1 - - - File's Owner - - - -2 - - - - - 9 - - - - - 64 - - - - - 63 - - - - - 71 - - - - - 72 - - - - - - - TTXibViewController - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - UIResponder - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - - - - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - TTSwitch - com.apple.InterfaceBuilder.IBCocoaTouchPlugin - - - - - - - 131 - - - 0 - IBCocoaTouchFramework - YES - 3 - YES - 2083 - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TTSwitch/TTSwitch.m b/TTSwitch/TTSwitch.m index ea5589c..256f23b 100644 --- a/TTSwitch/TTSwitch.m +++ b/TTSwitch/TTSwitch.m @@ -296,8 +296,10 @@ - (void)updateThumbPositionAnimated:(BOOL)animated CGFloat animationDuration = animated ? kTTSwitchAnimationDuration * distanceOfTravel : 0.0f; [UIView animateWithDuration:animationDuration animations:^{ + self.userInteractionEnabled = NO; [self moveThumbCenterToX:newThumbXCenter]; } completion:^(BOOL finished) { + self.userInteractionEnabled = YES; [self didMoveThumbCenterToX:newThumbXCenter]; }]; }