title: Methods Memory management in iOS under ARC
body: <p>What happens Memory wise if I keep calling this method?
  (Please don’t comment the code, it is just a thought example. )</p>
  
  <pre><code>-(NSMutableArray*)searchForItemsWithString:(NSString *)searchString
  {
      NSString *baseUrl = @"http://www.myService.com/";
  
      NSURL *tempUrl = [NSURL URLWithString:[NSString stringWithFormat:@"%@%@",baseUrl, searchString]];
  
      NSMutableArray *tempResultArray = [[NSMutableArray alloc ] initWithContentsOfURL:tempUrl];
  
      return tempResultArray;
  }
  </code></pre>
  
  <p>Will <code>tempResultArray</code> keep increasing the reference count, or will ARC do the magic after <code>tempResultArray</code> has been returned, and dealloc it?</p>