ios - Swift : Modifying UISearchBar Cancel button font text color and style -


this question has answer here:

how can change text font , color of uisearchbar cancel button in swift ?

may you.

let cancelbuttonattributes: nsdictionary = [nsfontattributename: font_regular_16!, nsforegroundcolorattributename: color_blue]     uibarbuttonitem.appearance().settitletextattributes(cancelbuttonattributes, forstate: uicontrolstate.normal) 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -