Added button as a accessory view of tabelViewCell but the action set for that is not calling
<p>I have implemented createCellForTableview: method in AppDelegate which creates the cell add appropriate UIButton as accessoryView to the cell and returns the cell to the controller.In my viewController i am creating the instance of the accessoryView and adding the target to the button as fallows:   </p>

<pre><code> button = (UIButton *)cell.accessoryView;
 [button setTitle:@"access" forState:UIControlStateNormal];
 [button setTitle:@"access" forState:UIControlEventTouchUpInside];
 [button addTarget:self action:@selector(accessButtonTapped:event:)  forControlEvents:UIControlEventTouchUpInside]; 
</code></pre>

<p>My problem here is, the button action not being called.Please help me in resolving this issue.</p>

<p>Thanks in advance</p>
