I am having an issue where the UISearchBar keeps resizing once i click away then goes back, to the appropriate size. I am setting the frame and the bounds like so in the init.
[_searchBar setFrame:CGRectMake(10, 10, 300, 20)]; [_searchBar setBounds:CGRectMake(10, 10, 300, 20)]; I am also doing this for layoutSubviews
- (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; [_searchBar setFrame:CGRectMake(10, 10, 300, 20)]; [_searchBar setBounds:CGRectMake(10, 10, 300, 20)]; } 