Hi, this is a weird behavior when aligning the text of a UISearchBar while the UISearchBar not in editable mode, but which works fine in edit mode. In non-editing mode, in which the position of the placeholder text is not used as the center, this text display is bit-up inside to UISearchBar , as shown below.
Replacing a non-editable mode is as follows:

Recording editing mode is as follows:

As you can see, the first screenshot showing bit by bit is not like the second screenshot of Center. Therefore, I want to make this place the Holder text center as the search icon Y.
I just set the text in the Bar Barholder search bar using the main method:
[self.srcbar setPlaceholder:@"Please Enter search Text"];
Please help me with this, how can I fix this problem.
placeholder ios ios7 uisearchbar
Nitin gohel
source share