我必須隱藏搜索欄色調。 我寫foll0wing代碼是否可以刪除UISearchBar的色調圖像?
UISearchBar *searchBar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 15, 270, 15)];
searchBar.delegate = self;
searchBar.barStyle = UISegmentedControlStylePlain;
searchBar.placeholder [email protected]"search";
searchBar.tintColor=[UIColor clearColor];
[imageview addSubview:searchBar];
這裏搜索欄添加上ImageView的。我想隱藏色彩的一面,但bydeaflt說到。我也恰克的顏色,着色顏色,但它不是work.is任何人有刪除或隱藏色彩的想法在搜索欄.Thanks
我試着在上面的代碼語法工作.alse沒有設置色調顏色,但還是色調都在兩個side.is色調來bydefault – triveni