KKGridView icon indicating copy to clipboard operation
KKGridView copied to clipboard

How can i creat a cell with different size in another section?

Open Nathan0518DC opened this issue 11 years ago • 3 comments

How can i creat a cell with different size in another section. Like, in section one , i want that in this section has only one cell,but the cell i wanted is 320x400;and in section two, there are lots of cells which are about 75x75. How can i do that? Hope somebody can help me.

Nathan0518DC avatar May 14 '13 09:05 Nathan0518DC

I'm pretty sure the current API doesn't allow it. Returning different cells for different sections could probably allow you to fake it (by changing the cell's appearance.)

kolinkrewinkel avatar May 29 '13 02:05 kolinkrewinkel

@kolinkrewinkel thanks, i've already found a solution for this question. The hearder and the footer view could be replaced, so i make it as a different cell.

Nathan0518DC avatar Jun 18 '13 10:06 Nathan0518DC

Hi, I want to do the same...can you please explain a bit how did you achieved that by changing header and footer because as I am changing the cell size the layout later in the UI is disturbed completely.

Thank you in advance for your cooperation.

Also,Can I create entirely different cell to be loaded for a different section. Because I tried to create new .h and .m files and later loaded them in a particular section but those cells are not visible.

PreetySingh avatar Nov 07 '13 07:11 PreetySingh