uitableview - Change UITableViewCell Font in iOS 8 and swift -


i'm trying change font uitableviewcells,

i'm trying use @ moment not success:

cell.textlabel.font = [uifont .preferredfontfortextstyle("avenir")]; 

now i've read lot on , seems should use instead :

    cell.textlabel.font = [uifont fontwithname: "avenir" size:22]; 

problem fontwithname not seem exist in ios 8

any ideas??

thanks

the thing not swift (it kind of horrifying bastardization of objective-c):

cell.textlabel.font = [uifont fontwithname: "avenir" size:22]; 

this swift:

cell.textlabel.font = uifont(name:"avenir", size:22) 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -