Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 26th, 2012  |  syntax: None  |  size: 0.39 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. iphone where are variables allocated in heap
  2. NSString *nombre = [[NSString alloc] initWithString:@"nombreName"];
  3.        
  4. UIView *someObject = [[UIView alloc] init];
  5.        
  6. (gdb) po someObject
  7. <UIView: 0x9304090; frame = (0 0; 0 0); layer = <CALayer: 0x4b1b730>>
  8.        
  9. (gdb) p someObject
  10. $2 = (UIView *) 0x9304090
  11.        
  12. (gdb) p (int) someObject
  13. $3 = 154157200
  14.        
  15. NSLog(@"nombre address is %x", nombre);