sinh99
sinh99

Reputation: 3979

How can adjust search bar size of UISearchDisplayController

I am using UISearchDisplayController using nib file.But in that when I am going to search at that time search bar frame's size automatically resize as view's size.I have made changes with its contentStretch ,frame ,and also try to made other changes but could not fix it's size.So if you have any suggestion for it so please tell me. Thanks

Upvotes: 1

Views: 4334

Answers (1)

sinh99
sinh99

Reputation: 3979

I have solved it right now using this method.

- (void) searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller {
    self.searchDisplayController.searchBar.frame=CGRectMake(0, 44, 352, 44);
}

But I am not satisfied with this.So please if is there any other option then please suggest too.

Thanks friends.

Upvotes: 2

Related Questions