Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. NSArray *newArr = [mainArray mutableCopy];
  2. [[newArr objectAtIndex:indexpath.section] replaceObjectAtIndex:indexpath.row withObject:@""];
  3. [[mainArray objectAtIndex:indexpath.section] removeObjectAtIndex:indexpath.row];
  4. objAppDelegate.arrayProfile = [newArr objectAtIndex:2];
  5.  
  6. NSArray *newArr = [mainArray copy];
  7.  
  8. NSMutableArray *newArr = [[NSMutableArray alloc] initWithCapacity:mainArray.count];
  9. for (NSObject* item in mainArray) {
  10. [newArr addObject:[item copy]];
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement