I am tried counting the number to make UIImage perfect size each time, so I am making the comic app, and I can upload without a set number to make perfect like that.
I try to import IMG in which UIImage from comicsCell (UITableViewCell) by the Storyboard used. here i am trying to research for almost 2 weeks and nothing to find a trick way to automatically UIImage Height.
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return Int(comicsCells.IMG.bounds.height)
// error: Cannot find 'comicsCells' in scope
}
Let me know if you find any code to allow me to import the image with automatic height itself.
Thank you!