title: Objective-C - allocation/initialization of an object with ARC
body: <p>I was wondering if I can directly alloc, init an ivar now with ARC (Because if I remember well it wasn't possible without ARC because it would leak memory no) ?</p>
  
  <p>Example (consider an ivar declared like this) :</p>
  
  <pre><code>@property (nonatomic, strong) NSArray *myArray;
  
  @synthetize myArray = _myArray;
  </code></pre>
  
  <p>And then do </p>
  
  <pre><code>self.myArray = [[NSArray alloc] initWithObjects:object1, object2, nil]; //I know I could directly use [NSArray arrayWithObjects:...] but that's the purpose of my question 
  </code></pre>