ACEExpandableTextCell icon indicating copy to clipboard operation
ACEExpandableTextCell copied to clipboard

Storyboard support?

Open osorioabel opened this issue 10 years ago • 8 comments

Hi, im trying to use the controller with storyboards, but doesnt work, i set the custom class to the cell, and set delegate protocol but nothing happens, i debug a little but the expandabletableview property on the cell is always nil.. Any suggestion?

osorioabel avatar May 21 '14 15:05 osorioabel

The easier way to adde the expandable cell is to call the helper

- (ACEExpandableTextCell *)expandableTextCellWithId:(NSString *)cellId

in

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

If you added the cell to the UITableView added with storyboard, you have to manually set the link the table view with the cell, so in

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
        ACEExpandableTextCell *cell = [tableView dequeueCell....
        cell.expandableTableView = tableView;
}

acerbetti avatar May 21 '14 16:05 acerbetti

when i do that appears an error, because the expandableTableView is a readonly property

osorioabel avatar May 21 '14 16:05 osorioabel

updated the repo, I'll update the pod later

acerbetti avatar May 21 '14 17:05 acerbetti

dude, i don't know if its me or what im doing its wrong but the cell behavior its like a empty cell, nothing happens, the expandableTableView now isn't nil but the cell its still empty..

osorioabel avatar May 21 '14 19:05 osorioabel

I didn't test with Storyboard yet, I will do it later and get back to you

acerbetti avatar May 21 '14 21:05 acerbetti

Did you test it with storyboard?

satyam90 avatar Feb 21 '15 16:02 satyam90

is it supported with storyboard ?, i am doing the same but nothing happens

smn-khan avatar Nov 01 '17 10:11 smn-khan

Don't use the prototype cell, it will work fine

smn-khan avatar Nov 01 '17 11:11 smn-khan