Use this Code:
UIImageView *backgroundView = [[UIImageView alloc] initWithFrame:searchbar.bounds];
backgroundView.image = [UIImage imageNamed:@"app_bg.png"];
[searchbar insertSubview:backgroundView atIndex:1]; // at index 1 but not 0
[backgroundView release];
UIImageView *backgroundView = [[UIImageView alloc] initWithFrame:searchbar.bounds];
backgroundView.image = [UIImage imageNamed:@"app_bg.png"];
[searchbar insertSubview:backgroundView atIndex:1]; // at index 1 but not 0
[backgroundView release];
thanks for this post..
ReplyDelete