How to change font size of a row in tableview | Coding Cluster - using asp.net, c#, mvc 4, iphone, php, ios, javascript, in asp.net mvc 3 & more
 

How to change font size of a row in tableview

Thursday

Change font size of a row in tableview:
                                       Copy and paste the following code into your  tableView's cellForRowAtIndexPath  method to change the font size of  a row in  a table view and set the number of line to display in a row.

 Code:
//Setup the cell...
cell.textLabel.font = [UIFont systemFontOfSize:12]; //Change this value to adjust size
cell.textLabel.numberOfLines = 3; //Change this value to show more or less lines.
cell.textLabel.text = @"Your Text";

0 comments:

Post a Comment

Share your thoughts here...

 
 
 

RECENT POSTS

Boost

 
Blogger Widgets