I am trying to customize the SearchBar using the SearchBar reference as declared bellow
@property (weak, nonatomic) IBOutlet UISearchBar *searchRef;
Then, i am trying to access the UIImage Reference and UISearchBarTextFieldLabel as shown in picture
I am printing the reference of the subviews using following code
NSLog(@"%@",self.searchRef.subviews[0].subviews[1].subviews);
but not getting the result as expected. I want the UIImage ref as well as UISearchBarTextFieldLabel. How can i do that?