UIButton not responding used in a custom UITableViewCell
<p>I know this issue is already been asked few times in SO. Despite trying those out, I am still unable to solve my problem. </p>

<p>I am using a UITableView inside a UIViewController. I have a custom UITableViewCell which has couple of buttons in it. However, I am not able to make the Button respond to Click event. </p>

<p>The development environment is iOS 9 and Swift 2</p>

<p>Snippets used :</p>

<p>BranchNearMeTableViewCell.swift contains</p>

<pre><code>@IBOutlet weak var btnDetails: UIButton!
</code></pre>

<p>view controller class</p>

<pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
        let cell = tableView.dequeueReusableCellWithIdentifier("branchNearTableCell") as! BranchNearMeTableViewCell

 cell.btnDetails.tag = indexPath.row
        cell.btnDetails.addTarget(self, action: "showDetails:", forControlEvents: .TouchUpInside)

}

func showDetails(sender: UIButton){

        print("Button Pressed:")
    }
</code></pre>

<p>Additional Info:</p>

<p>TableView and TableCellView has User interaction disabled in Interface builder since don't want the entire cell to be clickable. </p>

<p>UIButton inside TableViewCell has User Interaction enabled. </p>

<p>Being an iOS noob, I may be making a silly mistake which I might have overlooked. </p>

<p>Similar questions that I checked include:</p>

<p><a href="https://stackoverflow.com/questions/28894765/ios-swift-button-action-in-table-view-cell">SO1</a></p>

<p><a href="https://stackoverflow.com/questions/32558003/button-action-in-custom-uitableviewcell-in-swift-or-objective-c">SO2</a></p>

<p><a href="https://stackoverflow.com/questions/26736151/custom-cell-error-addtarget-button">SO3</a></p>

<p>I Deeply appreciate any help regarding this question. </p>