0

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 ?

Ankit Gupta
  • 958
  • 1
  • 6
  • 19

1 Answers1

1

yes in attribute inspector you can find all the properties and make changes in your searchbar according to your need

enter image description here

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];
  • 1
    abhinathan 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