acerbetti / ACEExpandableTextCell

TextView inside an expandable TableViewCell
MIT License
526 stars 61 forks source link

Storyboard support? #3

Open osorioabel opened 10 years ago

osorioabel commented 10 years ago

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?

acerbetti commented 10 years ago

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;
}
osorioabel commented 10 years ago

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

acerbetti commented 10 years ago

updated the repo, I'll update the pod later

osorioabel commented 10 years ago

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..

acerbetti commented 10 years ago

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

satyam90 commented 9 years ago

Did you test it with storyboard?

smn-khan commented 7 years ago

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

smn-khan commented 7 years ago

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