Advertisement
Guest User

Mutable Array Copy

a guest
Oct 15th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     NSNumber *testNumber = @1;
  2.     NSLog(@"Address: %p", testNumber);
  3.    
  4.     NSArray *testArray = @[testNumber];
  5.     NSLog(@"Address in Array: %p", testArray.lastObject);
  6.    
  7.     NSMutableArray *testMutableArray = testArray.mutableCopy;
  8.     NSLog(@"Address in Mutable Array: %p", testMutableArray.lastObject);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement