---
title: "UITableView cell popup menu"  
description: "UITableView cell popup menu"  
author: "Anonymous User"  
published: 2015-07-27  
updated: 2015-07-27  
canonical: https://www.mindstick.com/forum/23380/uitableview-cell-popup-menu  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# UITableView cell popup menu

In my [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) I am using [custom](https://www.mindstick.com/blog/12298/use-custom-writing-services-to-get-through-the-finals) [table cell](https://www.mindstick.com/forum/33993/how-to-wrap-long-text-in-a-table-cell-without-custom-cell), in that cell I am having a [button](https://www.mindstick.com/articles/63/how-to-add-button-in-datagridview-in-csharp-dot-net).

When I [click](https://www.mindstick.com/articles/12423/social-login-magento-2-one-click-to-register-social) that button it has to open a popup menu.

```
if ([strUserID isEqualToString:_LoginID]){
    [cell.editButton addTarget:self action:@selector(myoptionsmenu:)                                 forControlEvents:UIControlEventTouchUpInside];
} else {
    [cell.editButton addTarget:self action:@selector(otheroptionsmenu:)                                 forControlEvents:UIControlEventTouchUpInside];}
```

This is [working fine](https://answers.mindstick.com/qa/95550/why-is-the-safari-browser-not-working-fine). For [login](https://www.mindstick.com/articles/12852/styles-login-form-in-android) user post, the menu will be myoptionsmenu:

For other users post, the menu will be otheroptionsmenu:

First when I click myoptionsmenu: it is working fine, [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) when I click otheroptionsmenu: it is working fine.

In the third post, when I click it is showing both myoptionsmenu: and otheroptionsmenu: menus.

I would like to know how to [avoid](https://yourviews.mindstick.com/story/1518/tips-to-avoid-dengue-at-home) this.


---

Original Source: https://www.mindstick.com/forum/23380/uitableview-cell-popup-menu

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
