[英]How to change Background Color and Placeholder position of UISearchBar
是的,在屬性檢查器中,您可以找到所有屬性,並根據需要在搜索欄中進行更改
要么
您可以為您的應用創建自定義UISearchBar
//Custom search bar code
UISearchBar *search = [[UISearchBar alloc] init];
search.frame = CGRectMake(0, 200, 300,45);
search.delegate = self;
search.showsBookmarkButton = NO;
search.placeholder = @"Search/Select a Creative Service";
search.barTintColor = [UIColor whiteColor];
[self.view addSubview:search];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.