how to change UISearchBar from round to rectangle?

后端 未结 12 1727
没有蜡笔的小新
没有蜡笔的小新 2021-02-09 01:54

i will like to know how do i need to change a UISearchBar from the default round curve to a rectangle.

\"enter

12条回答
  •  温柔的废话
    2021-02-09 02:10

    Much better in my opinion:

    UITextField *txfSearchField = [_searchBar valueForKey:@"_searchField"];
    txfSearchField.borderStyle = UITextBorderStyleNone;
    

提交回复
热议问题