Iphone 在我看来,帮助我使用这个UIsearch栏需要正确设计
我需要一个设计合理的uisearchbarIphone 在我看来,帮助我使用这个UIsearch栏需要正确设计,iphone,Iphone,我需要一个设计合理的uisearchbar UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(125.0, 25.0, 150, 40)]; [searchBar setBackgroundColor:[UIColor clearColor]]; searchBar.barStyle=UIBarStyleBlackTranslucent; searchBar.showsCancelButton=NO;
UISearchBar *searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(125.0, 25.0, 150, 40)];
[searchBar setBackgroundColor:[UIColor clearColor]];
searchBar.barStyle=UIBarStyleBlackTranslucent;
searchBar.showsCancelButton=NO;
searchBar.autocorrectionType=UITextAutocorrectionTypeNo;
searchBar.autocapitalizationType = UITextAutocapitalizationTypeNone;
在下面的图片显示
我只需要搜索栏的椭圆形部分
我不想要搜索栏的矩形部分
怎么办
请帮帮我
那么,不要使用UISearchBar。条形图部分表示它将用作“条形图”,类似于导航栏或工具栏。相反,使用UITextField,并将borderStyle属性设置为UITextBorderStyleRoundedRect。请不要使用UISearchBar。条形图部分表示它将用作“条形图”,类似于导航栏或工具栏。相反,使用UITextField,并将borderStyle属性设置为UITextBorderStyleRoundedRect