daily pastebin goal
34%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Copy selected contacts to other UITableView IPhone
  2. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  3. {
  4. //customArray is datasource for this tableview
  5. NSString *item=    [self.customArray objectAtIndex:indexPath.row];
  6. //arr is datasource for second tableview
  7.     [arr addObject:item];
  8. }
  9.    
  10. lowerLblItem_Unit_Cost.text = [NSString stringWithFormat:@"%@", [delegate.addItem_UnitCost objectAtIndex:indexPath.row]];
  11.     lowerLblItem_Unit_Cost.backgroundColor = [UIColor clearColor];
  12.  
  13. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
  14. {
  15. //customArray is datasource for this tableview
  16. NSString *item=    [self.customArray objectAtIndex:indexPath.row];
  17. //arr is datasource for second tableview
  18.     [arr addObject:item];
  19.  
  20. or // you can use your own label
  21.  
  22. lowerLblItem_Unit_Cost.text = [NSString stringWithFormat:@"%@", [delegate.addItem_UnitCost objectAtIndex:indexPath.row]];
  23.     lowerLblItem_Unit_Cost.backgroundColor = [UIColor clearColor];
  24.  
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top