From 826d8d9b75b0f3d8890c839360c4f93d7dbb92e8 Mon Sep 17 00:00:00 2001 From: Roberto Previdi Date: Thu, 28 Apr 2016 02:35:40 +0200 Subject: [PATCH] fix autolayout in cells fix issue https://github.com/xmartlabs/Eureka/issues/395 --- Source/Core/Core.swift | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Source/Core/Core.swift b/Source/Core/Core.swift index e9db0f4e9..eadb0c82a 100644 --- a/Source/Core/Core.swift +++ b/Source/Core/Core.swift @@ -626,11 +626,6 @@ extension FormViewController : UITableViewDelegate { //MARK: UITableViewDelegate - public func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { - guard tableView == self.tableView else { return } - form[indexPath].updateCell() - } - public func tableView(tableView: UITableView, willSelectRowAtIndexPath indexPath: NSIndexPath) -> NSIndexPath? { return indexPath } @@ -705,6 +700,7 @@ extension FormViewController : UITableViewDataSource { } public func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { + form[indexPath].updateCell() return form[indexPath].baseCell }