Three20 : how to pass a class of objects between 2 views

前端 未结 4 1014
长情又很酷
长情又很酷 2021-02-04 17:18

I have a TTableView. The items in this table a mapped to an url, so that when I click on an item, another view appear with informations about this item. All these informations a

4条回答
  •  你的背包
    2021-02-04 17:37

    I have little fix this awesome code :) as posted version strip callback from TTTableButton.

    Correction is:

    if( [object isKindOfClass:[TTTableButton class]] ) {
       if (item.delegate && item.selector) {
           [item.delegate performSelector:item.selector withObject:object];
       }
       [tableView deselectRowAtIndexPath:indexPath animated:YES];
    }
    

提交回复
热议问题