Skip to content

Commit 449a539

Browse files
committed
Fixed iOS 9 warning flag
1 parent 0babcc9 commit 449a539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TOCropViewController/Views/TOCropToolbar.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ - (void)setup {
6262
_rotateClockwiseButtonHidden = YES;
6363

6464
// On iOS 9, we can use the new layout features to determine whether we're in an 'Arabic' style language mode
65-
if ([UIView resolveClassMethod:@selector(userInterfaceLayoutDirectionForSemanticContentAttribute:)]) {
65+
if (@available(iOS 9.0, *)) {
6666
self.reverseContentLayout = ([UIView userInterfaceLayoutDirectionForSemanticContentAttribute:self.semanticContentAttribute] == UIUserInterfaceLayoutDirectionRightToLeft);
6767
}
6868
else {

0 commit comments

Comments
 (0)