replace default search icon in UISearchBar with custom button

Discussion in 'iOS Programming' started by Battery, Mar 5, 2009.

  1. macrumors newbie

    Joined:
    Mar 5, 2009
    #1
    Hi All,

    Could anyone help with replacing default search icon in UISearchBar with custom button, like in Twitter application for Iphone? You could see example in attachment.

    So I want to do some other actions for left part of UISearchBar.

    Thanks
     

    Attached Files:

  2. macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #2
    If you replace your UISearchBar with a UITextField then you can set left and right UIViews on the bar (leftView and rightView respectively), which is presumably what Twitter have done here.
     

Share This Page