forum

Home / DeveloperSection / Forums / UITableView cell popup menu

UITableView cell popup menu

Anonymous User 1983 27-Jul-2015

In my application I am using custom table cell, in that cell I am having a button.

When I click 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. For login 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 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 this.

 


Updated on 27-Jul-2015
I am a content writter !

Can you answer this question?


Answer

0 Answers

Liked By