I dragged an dropped a table view Controller from the object library and changed the cell's row height to 300.However , when I run it in the simulator , the cell remains the same standard size.Why is this?
Images :
Constraints :
Output :
In Storyboard, if you know the cell height, set the Table View's Row Height property on the Size Inspector tab, not the cell's:
You can set custom row height example add ;
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat
{
return 100.0;//Your custom row height
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With