I want to create view like the image below.
My implementation should use text field input ,the behavior i like to built is once i clicked on the text input the current view should be faded because once the user start typing i will show table for autocomplete?

First of all you need to set a
UITextFieldDelegatefor yourUITextField.In the
UITextFieldDelegate‘s(void)textFieldDidBeginEditing:(UITextField *)textFieldmethod, you can just set the alpha of your main view to someting like 0.7. Or you can add another blackUIViewobject with alpha 0.7 on top of your main view.