I've been facing the problem since i decided to support IOS7, i was using heightForRowAtIndexPath
to return UITableViewAutomaticDimension
which is working well only with IOS8. and since UITableViewAutomaticDimension
doesn't work with IOS7 so i have to handle it manually. but there is no such resource to help in swift about this issue.
i am using custom cell called "Card Cell" :
class CardCell: UITableViewCell {
@IBOutlet var mainView: UIView!
@IBOutlet weak var text1: UILabel!
@IBOutlet weak var sharefb: UIButton!
}
so if there is anyway to handle it in heightForRowAtIndexPath
manually using swift ?