Imsticking's Leica D-Lux 4 Blog

I post it here and it sticks.

UISearchBar bugged in landscape mode with scopebar?

This is an iPhone Development post, so if you don't develop for iPhone, really you can stop reading now. Otherwise, I'm having a problem with the standard search bar controller that's new in 3.0. In portrain

Everything is fine in portrait mode with the scope bar visible as you can see below.

Screen_shot_2009-11-17_at_13

Fig 1.

However, when I rotate the device to landscape mode all hell breaks lose.

Screen_shot_2009-11-17_at_13

Fig 2.

What's the funky button on the far right doing there? Turns out it's the first scope button from my scope bar, because when you touch the search bar it redraws itself like so:

0screen_shot_2009-11-17_at_13

Fig 3.

So the question of the day is how do you nudge the first scope button on the far right in figure 2, off the screen so it's not getting in the way of the table index?

Anyone?

Filed under  //   Apple   Development   iPhone