UA-17470720-3

Jump to content


Issue Information

  • #000102

  • Issue

Issue Confirmations

  • Yes (0)No (0)
Photo

accessoryType ignored in willConfigure when only ONE cell

Posted by ozie on 30 December 2014 - 11:50 PM

whatever the cell.accessoryType is selected inside the cellAction for willConfigure is ignored when there is ONE cell
    section.cellActions.willConfigure = ^(SCTableViewCell *cell, NSIndexPath *indexPath)
    {
        cell.accessoryType = UITableViewCellAccessoryNone;
    };

when there is only ONE cell, the cell is displayed with the > detail icon
if you scroll the table up so the row is hidden, then it reappears without the > icon

if the table loads with more than ONE cell, all the cells do not display the > icon

this is also true for adding a new item to the list when there are no items to start with (empty data set).. once it is added that ONE cell shows the > icon

Oz

Hi Oz,

This is actually not a bug, it's just that the cell's owner SCArrayOfObjectsSection has certain requirements for the cell's accessory. Using willDisplay instead of willConfigure should work fine.

ahhhh k

i found that using
section.itemsAccessoryType = UITableViewCellAccessoryNone;

worked too:)





0 user(s) are reading this issue

0 members, 0 guests, 0 anonymous users