Parcourir la source

Faster scheule loading.

Iñigo Valentin il y a 9 ans
Parent
commit
0d48b900de
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  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)")
 		}