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

Untitled

By: a guest on Jul 15th, 2012  |  syntax: None  |  size: 0.51 KB  |  hits: 12  |  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. array (c style) cell content losing it's value when issue variable content
  2. double var1;
  3. NSString *Items[90];
  4.        
  5. var1 = 1000;
  6. NSString  *j = [NSString stringWithFormat:@"%g", var1 ];
  7. Items[42] = [@" Per each " stringByAppendingString: j ];
  8.        
  9. Items[42] = [@" Per each " stringByAppendingString: j ];
  10.        
  11. Items[42] = [@" Per each " stringByAppendingString: var1 ];
  12.        
  13. Items[42] = [@" Per each " stringByAppendingString: j ];
  14.        
  15. extern double var1;
  16. extern NSString *Items[90];
  17.        
  18. double var1;
  19. NSString *Items[90];