I have custom Cell (from storyboard) with image, and UILabel with the cell at normal height of 44. When I click on the custom cell, I expand the cell height, click again on cell, it folds to normal height. When expanded, and in the extra space I would like to add UISegment Control.
In didSelectRowAtIndexPath method, I add the segmentedControl, but this to make the segmented control all over the place when I click each time. I am not sure how to go about this. Should I make another custom Cell with the segmented control and load up the appropriate custom cell based if the cell is expanded or not?
I have custom Cell (from storyboard) with image, and UILabel with the cell at
Share
If I were you I would add the UISegmentControl when you create the cell, either with hidden = YES or place it out of the cell’s bounds and set clipToBounds = YES on the cell.