自定义cell中的元素在跳出tableview代理中的调用
ConfirmSecondCell为自定义的cell ,serviceMoneyLabel为自定义cell中的元素,想要在tableview代理以外的地方给cell中元素赋值,需要用到重新初始化一个cell。
- (void)getFeeInfoCompletionWithResponse:(BOOL)isSuccess errorMsg:(NSString *)errorMsg transferFee:(NSString *)transferFee
{
[selfremoveOverFlowActivityView];
if (isSuccess) {
ConfirmSecondCell *secondcell = (ConfirmSecondCell *)[self.tpTableViewcellForRowAtIndexPath:[NSIndexPathindexPathForItem:0inSection:1]];
float fee = ((float)[transferFee integerValue])/100;
secondcell.serviceMoneyLabel.text = [NSString stringWithFormat:@"服务费%.2f元",fee];
}
else
{
[self presentSheet:errorMsg];
}
}