Iñigo Valentin 9 лет назад
Родитель
Сommit
0d48b900de
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      app/ScheduleViewController.swift

+ 6 - 2
app/ScheduleViewController.swift

@@ -156,11 +156,15 @@ class ScheduleViewController: UIViewController, UIGestureRecognizerDelegate {
 				
 				NSLog(":SCHEDULECONTROLLER:DEBUG: Adding row: height: \(row.frame.height)")
 				svScheduleList.addArrangedSubview(row)
-				row.setNeedsLayout()
-				row.layoutIfNeeded()
+				//row.setNeedsLayout()
+				//row.layoutIfNeeded()
 				
 				rowcount = rowcount + 1
 			}
+
+			svScheduleList.setNeedsLayout()
+			svScheduleList.layoutIfNeeded()
+
 		} catch {
 			NSLog(":SCHEDULECONTROLLER:ERROR: Error with request: \(error)")
 		}