title: swipeGestureRecognizer not working when restarting app in Ios Simulator
body: <p>Im toying around with SwipeGestureRecognizer.
  It´s working as I expect, but when I exit the app in the simulator and run it again, the SwipeGestureRecognizer no longer responds. If i run it again after quitting iOS simulator, it works.</p>
  
  <p>This is what I have tried:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  
  @interface swipeTestUI : UIViewController
  @property (strong, nonatomic) IBOutlet UIImageView *imageView;
  
  - (IBAction)mangeSwipeControl:(UIGestureRecognizer*)sender;
  
  
  
  
  @end
  </code></pre>
  
  <p>Implementation file:</p>
  
  <pre><code>#import "swipeTestUI.h"
  
  @interface swipeTestUI ()
  
  @end
  
  @implementation swipeTestUI
  
  @synthesize imageView;
  int listOfImages = 0;
  
  - (IBAction)mangeSwipeControl:(UIGestureRecognizer *)sender {
      NSLog(@"swipe ok");
      NSArray *images=[[NSArray alloc]initWithObjects:
                          @"1.png",
                          @"2.png",
                          @"3.png",
                          @"4.png",
                          @"5.png",
                          @"5.png",nil];
      UISwipeGestureRecognizerDirection direction = [(UISwipeGestureRecognizer *) sender direction];
      switch (direction) {
          case UISwipeGestureRecognizerDirectionLeft:
              listOfImages++;
              break;
          case UISwipeGestureRecognizerDirectionRight:
              listOfImages--;
              break;
          default:
              break;
      }
      listOfImages = (listOfImages &lt; 0) ? ([images count] -1):listOfImages % [images count];
      imageView.image = [UIImage imageNamed:[images objectAtIndex:listOfImages]];
  
  
  
  }
  
  
  
  
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          // Custom initialization
      }
      return self;
  }
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      // Do any additional setup after loading the view.
  
  
  
  }
  
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation{
  
      return (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight);
  }
  </code></pre>