views:

23

answers:

1

I have a UISearchBar in my UINavigationBar that also has a button in it. When you click the search field the button gets a bit larger to accommodate text and the search field gets smaller to make space for it.

Although this looks perfect as far as visual UI is concerned the x to clear the search field is almost unclickable.

I am setting the frame by doing

self.navigationController.navigationBar.bounds;

every time the size is meant to change. What should I use instead so that the search bar's x is clickable?

Cheers for any help

A: 

Well simple solution, I should be setting the bounds rather than the frame

Rudiger