Commit b1827f2b authored by Tobias's avatar Tobias

Workaround for bug when setting semanticContentAttribute of UISlider in InterfaceBuilder

parent bedf95c1
...@@ -31,6 +31,14 @@ ...@@ -31,6 +31,14 @@
self.minimizePlaybackButton.accessibilityLabel = NSLocalizedString(@"MINIMIZE_PLAYBACK_VIEW", nil); self.minimizePlaybackButton.accessibilityLabel = NSLocalizedString(@"MINIMIZE_PLAYBACK_VIEW", nil);
self.minimizePlaybackButton.isAccessibilityElement = YES; self.minimizePlaybackButton.isAccessibilityElement = YES;
// workaround for radar://22897614 ( http://www.openradar.me/22897614 )
UISlider *slider = self.positionSlider;
if ([slider respondsToSelector:@selector(semanticContentAttribute)]) {
UISemanticContentAttribute attribute = slider.semanticContentAttribute;
slider.semanticContentAttribute = UISemanticContentAttributeUnspecified;
slider.semanticContentAttribute = attribute;
}
[self setNeedsLayout]; [self setNeedsLayout];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment