Skip to main content

Timeline for Swift UITableView really slow

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Jul 25, 2015 at 13:39 vote accept jbehrens94
Jul 25, 2015 at 11:06 comment added Paulw11 You should make the call to getAllNummers once and then just access the array directly in cellForRowAtIndexPath. Also, if you have registered your cell class or are using a storyboard then dequeueReusableCellWithIdentifier can't return. Il - this would seem to be the case since you have used as! which will throw an exception if nil is returned.
Jul 25, 2015 at 10:48 answer added Paul.s timeline score: 3
Jul 25, 2015 at 10:46 comment added dasdom Put the numbers into an array.
Jul 25, 2015 at 10:41 comment added jbehrens94 func getAllNummers() -> CSwiftV { let nummers = CSwiftV(String: self.contents as! String) return nummers }
Jul 25, 2015 at 10:40 comment added Paul.s What does getAllNummers() do?
Jul 25, 2015 at 10:39 history edited jbehrens94 CC BY-SA 3.0
Changed ugly if-chaining to switch.
Jul 25, 2015 at 10:33 history asked jbehrens94 CC BY-SA 3.0