assign the text to the BARealSearchBar instead of the TextField directly.