Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1935
Need custom IGGridViewSectionHeaderCell advice
posted


Referring to the picture above, I don't know the best way to do this for performance, but I'm guessing I'd go about it like this…

Obtain a section header cell from IGGridViewSectionHeaderCell +gridView:cellForSectionHeader:

Create and size three UIViews (light purple boxes) and place them in the section header cell.

UIView 1 has the circular icon which would either be an image, or be drawn in code.

UIView 2 would be a label

UIView 3 would be an image.

Each of the UIViews would need a tap gesture recognizer

The UIViews 1 and 2 would have a tap recognizer that would toggle the expand / collapse behavior

UIView 3 would have a tap recognizer that would take you to another gridview.


Parents
  • 40030
    Offline posted

    Hey Dave

    Id derive from the section header cell and extend it that way.

    I'm taking a long weekend, but when I come back I could throw a sample together for you. Not sure how soon you need this.

    -SteveZ

Reply Children