I am trying to add UISearchBar on storyboard but i see there is not much option for Background color, text placeholder. Can i do that without programming ?
Asked
Active
Viewed 322 times
0
-
take a look please at my previous answer https://stackoverflow.com/a/45555462/3472073 – ale_stro Aug 07 '17 at 20:49
1 Answers
1
yes in attribute inspector you can find all the properties and make changes in your searchbar according to your need
OR
You can create a custom UISearchBar
for your app
//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];
-
1abhinathan check once the qusetion , the questioner asked `Can i do that without programming ` – Anbu.Karthik Mar 14 '16 at 07:28
-
yes in attribute inspector you can find all the properties and make changes in your searchbar according to your need – Mar 14 '16 at 07:31