PXListView
PXListView copied to clipboard
listView:heightOfRow: is called a gazillion times
Even with a modest number of rows (< 100) I get thousands of calls when scrolling, or even by just resizing the window without scrolling when usingLiveResize is set to YES. Is that the intended behavior or am I doing something wrong?
@ziofil Hmm, I can't say I've seen that before myself. Do you have any particular steps to repro? What version of OS X are you seeing it on?
Yosemite 10.10.1 and Xcode 6.1.1 I did a bit of NSLogging to backtrack the calls to listView:heightOfRow: and I found that the vast majority of them comes from countless calls to extendedRange: (which calls rectOfRow: which in turn calls listView:heightOfRow:) The only other thing that might be worth mentioning is that since I'm using ARC, I removed all the explicit calls to dealloc and autorelease. Does this help?