Skip to content

Commit

Permalink
check class selector instead of instance selector
Browse files Browse the repository at this point in the history
  • Loading branch information
MortimerGoro committed Apr 2, 2016
1 parent 8147ffd commit fa0aa7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MGSwipeTableCell/MGSwipeTableCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ -(void) cleanViews

-(BOOL) isRTLLocale
{
if ([[UIView class] instancesRespondToSelector:@selector(userInterfaceLayoutDirectionForSemanticContentAttribute:)]) {
if ([[UIView class] respondsToSelector:@selector(userInterfaceLayoutDirectionForSemanticContentAttribute:)]) {
return [UIView userInterfaceLayoutDirectionForSemanticContentAttribute:self.semanticContentAttribute] == UIUserInterfaceLayoutDirectionRightToLeft;
}
else {
Expand Down

0 comments on commit fa0aa7e

Please sign in to comment.