Dynamic cell heights of UITableView programmatically IOS7 in Swift
I ran into the problem since I decided to support IOS7, I used heightForRowAtIndexPath
to return UITableViewAutomaticDimension
which only works well with IOS8. and since UITableViewAutomaticDimension
doesn't work with IOS7 so I have to handle it manually. but there is no resource that can quickly help in this matter.
I am using a custom cell called "Card Cell":
class CardCell: UITableViewCell {
@IBOutlet var mainView: UIView!
@IBOutlet weak var text1: UILabel!
@IBOutlet weak var sharefb: UIButton!
}
so what if anyway it is possible to manually handle it in heightForRowAtIndexPath
using swift?
+3
source to share