UITextField *textfield=(UITextField*)[[searchBar subviews] objectAtIndex:0];
UIImage *image = [UIImage imageNamed: @"searchbtn.png"];
UIImageView *iView = [[UIImageView alloc] initWithImage:image];
textfield.leftView=iView;
UIImage *image = [UIImage imageNamed: @"searchbtn.png"];
UIImageView *iView = [[UIImageView alloc] initWithImage:image];
textfield.leftView=iView;
No comments:
Post a Comment