to try
@implementation UISearchBar (subviewAccess)
- (UISegmentedControl *)scopeBar {
for (UIView *v in [self subviews]) {
if ([v isKindOfClass:[UISegmentedControl class]])
return v;
}
return nil;
}
@end
to get the desired segmented control and hone it from there (it is currently at index 0, but this is definitely not necessary)
there is no “private API”, so the apple should be fine with it, but note whether they changed the layout of the view (unlikely), it may break, which will have a side effect of the fade, you should access the rest of its state through standard Search APIs