1

I am implementing simple UI for URL checking. For this, I used textField and button objects.

When I run the program first time, textField and button will work fine but when I click on the done button on the keyboard then the keyboard is dismissed. Now I want to edit the textField and when I am trying to click on textField it is not clickable or not showing the keyboard. same thing happened to the button, next button is also not clickable.

Here is the code I wrote for the button action

- (IBAction)urlNextButtonAction:(id)sender {

    [self.urlTextfield resignFirstResponder];

    [SVProgressHUD showWithStatus:@"Verifying URL"];
    [self URLValidationMethod];
}

Please check this video you will understand the problem very easily

This is the ViewController screenshot from storyboard

enter image description here

Priyanka Patil
  • 318
  • 1
  • 9

2 Answers2

0

There could be several issue with this..

  1. Check either Textfield delegate might not be or properly set.
  2. Try to debug textfield delegate methods are they working.

it would be helpful if you show what you have written in keyboardShouldReturn method.

0

It seems like the problem is with the SVProgressHud. You should remove it as soon as you task is completed by calling [SVProgressHud dismiss] or else it will block the UI.

iPeter
  • 1,330
  • 10
  • 26