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:
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...