This article is a piece of my "iOS development Daily Small Notes" series, which is recorded in the development work today, can be explained with a short article or a small demo demo small tips. The classification of the article, the content of the knowledge points may be very simple, or with a short code snippet can be achieved, but in my opinion they may give the user experience, code efficiency to some improvement, or have not touched before the technology, very happy to learn, put here to be a bit (^_^). In fact, 90% of the role is to help themselves review, memory, review. If crossing feel too easy, too fragmented, then there can be two options: 1, the "iOS Inquiry" classification, the article there treatise, 2, in the comments in this article mercilessly spit groove, and then turn off the page! Thank!
The product today proposed a change in demand, hoping that an interface into the form of waterfall flow to show. In fact, from my personal perspective, I hold (view) Opinions on most of the things that I say about literature and art. "Affectation" is a word that appears in my mind, however, considering that a large part of people have the demand of literary and artistic attire, and there is rationality, then I do not judge waterfall flow. Correct attitude, the sea of hundreds of rivers, just to learn how this malformed waterfall flow in the end how fast to achieve.
First of all, I analyzed my own, thinking there are two: 1, on the ScrollView, their own subview layout. But reuse to achieve their own, 2, using a few tableview splicing, but did not try, do not know the feasibility is not big.
Time is limited, or online looking for ideas!
Found a large article like this http://www.cnblogs.com/monicaios/p/3530516.html voluminous to introduce. Basically, I started from scratch how to design a waterfall flow, because I need to quickly implement the method, so pass. Did not see, I do not know how much gold content of this blog post.
Finally chose GitHub above the open source Tmquiltview, the foreigner writes the thing is still more reliable, here http://www.oschina.net/question/100267_66491 and here HTTP/s blog.csdn.net/shenjx1225/article/details/9037631 can see the Chinese write the use of methods and functions introduced, hehe.
The address on GitHub is Https://github.com/1000Memories/TMQuiltView with a demo, which should be very simple to use.
But note that there is a bug,cell reuse in the version, the cell will sometimes not redraw to disappear, the great God has given a solution, here: https://github.com/pawartur/TMQuiltView/commit/ 2cd1a3eaa6ad4b149dd5b4c69513dd254cf76dca#diff-c6c5ddf6f9b5b2a32852e8233c30ef9ar428
Use the effect I will not write out, really is "good and simple".
Have the opportunity to have time, I again in "iOS inquiry" do "explore" it, haha.