ios - UISearchBar graphical issue -


can tell me, why when set uisearchbar search style minimal, i've got strange white bracket near "x" button??

original bug image

both simulator , device. how handle crap?

answer: time ago had task change uisearchbar's cancel button title, , placed following code make it:

[[uibutton appearancewhencontainedin:[uisearchbar class], nil] settitle:nslocalizedstring(@"searchbar.cancelbutton.title", nil) forstate:uicontrolstatenormal];

and exact reason of graphical bug. can see view hierarchy, disabled "show cancel button", cancel button still exist , not hided. "bracket" half "o" new button title "Отмена".

view hierarchy screenshot


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -