-(void) initsearchbar{ self.wineSearchBar.delegate = self; [Self.winesearchbar setscopebarbuttontitletextattributes:[nsdictionary Dictionarywithobjectsandkeys:[uicolor Redcolor], nsforegroundcolorattributename, [Uifont fontwithname:general_font size:13], NSFontAttributeName, nil] Forstate:uicontrolstatenormal]; [Self.winesearchbar setscopebarbuttontitletextattributes:[nsdictionary Dictionarywithobjectsandkeys:[uicolor Whitecolor], nsforegroundcolorattributename, [Uifont fontwithname:general_font size:13], NSFontAttributeName, nil] Forstate:uicontrolstateselected];}
Requirements: IOS7 +
Change color: [Uicolor redcolor], nsforegroundcolorattributename
Modify font: [Uifont fontwithname:general_font size:13], nsfontattributename
Reference Source: http://stackoverflow.com/questions/15385050/color-of-scope-button-text-in-uisearchbar/
IOS changes the color and font of the Chinese text in the scope button in search bar