Tuesday, 6 November 2012

remove the background color from search bar in iPhone

for (UIView *subview in [searchBar subviews]) {
    if ([subview isKindOfClass:NSClassFromString(@"UISearchBarBackground")])
    {
        [subview removeFromSuperview];
    }
}

for (UIView *subview in [searchBar subviews]) {
        NSLog(@"%@", [subview class]);
}

No comments:

Post a Comment