I have tried to add a UISwitch as an accessory view to one of the rows in my table.
My problem is that the accessory view is invisible. By initializing the UISwitch with the CGRectZero frame I can get the UISipleTableViewCell's text label to truncate, so something is there . I have also tried to override acceroryRectForBounds:, but with no success.
If I use the inherited addSubview: from UIView the UISwitch do show up. But I do not think this is the right way to do it.
Has anyonw successfully used an accessory view with a UISimpleTableViewCell, or UITableViewCell?
My problem is that the accessory view is invisible. By initializing the UISwitch with the CGRectZero frame I can get the UISipleTableViewCell's text label to truncate, so something is there . I have also tried to override acceroryRectForBounds:, but with no success.
If I use the inherited addSubview: from UIView the UISwitch do show up. But I do not think this is the right way to do it.
Has anyonw successfully used an accessory view with a UISimpleTableViewCell, or UITableViewCell?