Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Copy selected contacts to other UITableView IPhone
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
- {
- //customArray is datasource for this tableview
- NSString *item= [self.customArray objectAtIndex:indexPath.row];
- //arr is datasource for second tableview
- [arr addObject:item];
- }
- lowerLblItem_Unit_Cost.text = [NSString stringWithFormat:@"%@", [delegate.addItem_UnitCost objectAtIndex:indexPath.row]];
- lowerLblItem_Unit_Cost.backgroundColor = [UIColor clearColor];
- - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
- {
- //customArray is datasource for this tableview
- NSString *item= [self.customArray objectAtIndex:indexPath.row];
- //arr is datasource for second tableview
- [arr addObject:item];
- or // you can use your own label
- lowerLblItem_Unit_Cost.text = [NSString stringWithFormat:@"%@", [delegate.addItem_UnitCost objectAtIndex:indexPath.row]];
- lowerLblItem_Unit_Cost.backgroundColor = [UIColor clearColor];
- }
Add Comment
Please, Sign In to add comment