SHORT VERSION - Does STV automatically resize the image used for the arrow on the right edge in an SCObjectSelectionCell when cell.height is set? If not, how do I resize this to make the cell be shorter than the original image?
Hi All -
First - apologies for re-writing this text several times - I'm continuing to research this...
I'm trying to get rid of unnecessary white space in selection cells to maximize the amount of screen real estate allocated to the content based on the selections. At the moment, I have three selection cells each of which has white space inside it both above and below the label displaying the current selection.
I have a theme file containing the following which I'm applying to the cells:
MyCellStyle
{
label.font: Arial 8;
label.textAlignment: 1;
label.numberOfLines: 1;
}
The font works. The textAlignment works (1 = center - unable to get NSTextAlignmentCenter to work...).
Then, I have:
myChooser.cellActions.willStyle = ^(SCTableViewCell *cell, NSIndexPath *indexPath)
{
if (indexPath.row == 1) {
cell.themeStyle = @"MyCellStyle";
cell.height = 20;
SCControlCell *controlCell = (SCControlCell *)cell;
controlCell.controlMargin = 0;
}
};
I'm still getting white space above the selected value. The only other thing in each SCObjectSelectionCell in addition to the selected value is the image with the arrow providing a UI indicator to tap to open the detail view controller to make a selection. Is it possible that STV is not resizing this image based on cell.height?
Help would be much appreciated as I'm guessing this is a simple newbie error of not knowing what to put in the theme file or what property to set on the cell.
Thanks,
Mark
Edited by markr, 23 March 2014 - 06:32 PM.