Do I have to release accessoryView?
<pre><code>UISwitch *switchView = [[UISwitch alloc] initWithFrame:CGRectZero];
cell.accessoryView = switchView;
[switchView adTarget:selfaction:@selector(switchChanged:)forControlEvents:UIControlEventValueChanged];
[switchView release];
</code></pre>

<p>I allocated switch view in tableView: cellForRowAtIndexPath:.
Do I have to release cell.accessoryView in dealloc?</p>

<p>Isn't this better than above?</p>

<pre><code>cell.accessoryView = [[[UISwitch alloc] initWithFrame:CGRectZero]autorelease];
</code></pre>
