Basic question here. I started using ARC and am not sure if I should release objects in situations where another object takes ownership.
e.g. [self.view addSubview:someViewController.view];
Should this view be released or can I just leave it as is?
Same goes for an array, when adding objects to an array, should I release them afterwards because the array has the object ownership or can I just leave it?
For this sitiuation
[self.view addSubview:someViewController.view];, if someViewController is a strong property then after using it, you should callself.someViewController = nilFor an array you dont call release on the objects, but if the array is a strong property then you will need to set it to nil when you are done with it