Skip to content

Commit

Permalink
3.1.3 compatibility fixes for MNAlertViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhajas committed Apr 11, 2011
1 parent 8ae4c9b commit 8225cde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MNAlertViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ -(void)viewDidLoad
[super viewDidLoad];

//If the system understands UIGestureRecognizer, utilize it!
Class gestureRecognizer = NSClassFromString(@"UIGestureRecognizer");
if(gestureRecognizer != nil)
if([UISwipeGestureRecognizer respondsToSelector:@selector(setNumberOfTouches:)])
{
// Single finger, double tap
UISwipeGestureRecognizer *swipeRight = [[UISwipeGestureRecognizer alloc]
Expand Down

0 comments on commit 8225cde

Please sign in to comment.