Good day,

In my application on iOS there is a view necessary to enter some information. There are several textboxes on it (for the time being, these are textboxes), one of which is to enter a date. Accordingly, I want to click on this controller does not open the keyboard, and displayed UIDatePicker.

I have two questions:

  1. How can I make sure that the keyboard is not displayed by clicking on the textbox?
  2. Comrades who are more experienced in organizing convenient interfaces, can you please tell how it is customary to organize such things in user-friendly applications so that everything is intuitively understandable? I would like to make the whole screen a bit dark, and on top of the blackout at the bottom of the screen so that there is a UIDatePicker. Or maybe somehow beat it through a new view? It is only necessary to take into account that I still have a tab bar at the bottom, so I don’t want to make too much interest.

I would be happy to receive detailed answers, as well as links to pages where this all would be explained in detail. And then I somehow come across stupid manuals, how to insert a UIDatePicker into my application and that's it.

Thanks in advance for your helpful answers.

    1 answer 1

    In general, here:

    UIDatePicker *myDatePicker = [[UIDatePicker alloc] init]; //myDatePicker конфиг пикера... myTextField.inputView = myDatePicker; 
    • well, throw a view with alpha 0.5 on top of the view with myTextField, for example, for the desired dimming. + you can add animation ++ materiel - no need to tell that there are no rules for manuals - looking bad means. - AlessandroDP
    • one
      I would single out ++ materiel - BiMaWa