UISearchBar * searchbar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 260, 44)];
searchbar.delegate=self;
[searchbarsetTintColor:[UIColor redColor]];
[searchbarsetPlaceholder:@"搜索游记、旅行地与用户"];
self.navigationItem.titleView = searchbar;
UISearchBar * searchbar = [[UISearchBar alloc]initWithFrame:CGRectMake(0, 0, 260, 44)];
searchbar.delegate=self;
[searchbarsetTintColor:[UIColor redColor]];
[searchbarsetPlaceholder:@"搜索游记、旅行地与用户"];
self.navigationItem.titleView = searchbar;
本文标题:ios 添加搜索框
本文链接:https://www.haomeiwen.com/subject/vehufqtx.html
网友评论