Monthly Archives: May 2017

iOS – Click view to dismiss the keyboard

    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self.view action:@selector(endEditing:)];     tap.cancelsTouchesInView = FALSE;     tap.delegate = self;     [self.view addGestureRecognizer:tap];

Posted in iOS development | Leave a comment