I was confused a little by the following:
if column >= (numberOfColums - 1) {
column = 0
} else {
column = 1
}
I can see how it switches back and forth between the two columns, even though it uses the numberOfColums variable it does not work for more than two columns.
The following code also only works for two columns but does balance them depending on the height. (i.e. not just back and forth)
//if we are currently using the highest column switch to the other.
if contentHeight == CGRectGetMaxY(frame)
if column == 0 {
column = 1
} else {
column = 0
}
}
Thanks for the series, I learned quite a lot
Paul