Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/43.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 在我看来,帮助我使用这个UIsearch栏需要正确设计_Iphone - Fatal编程技术网

Iphone 在我看来,帮助我使用这个UIsearch栏需要正确设计

Iphone 在我看来,帮助我使用这个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

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