Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7675455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:58:00+00:00 2026-05-31T16:58:00+00:00

I have three buttons in a three column structure in a custom cell in

  • 0

I have three buttons in a three column structure in a custom cell in a .xib

See pic:

example from ib builder

I also have two classes one which holds the list and the second one which holds the cell I have managed to log out the touch of the button in the class which belongs to the cell, but I also want to know if they touched the firstColumnButton I want didSelectRowAtIndexPath to trigger.

My ultimate goal is to trigger didSelectRowAtIndexPath, to find out which cell has been pressed, which button in that cell so the user can go to the right content which they pressed on.

In ListController.m:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

    NSLog(@"Pressed on the table");
    if(cell.pressedButtonInColumnOne == YES){
            NSLog(@"Pressed button one in column one");
    }
}

Right now the first NSLog does not trigger at all.

Only this in the CategoryCell.m

 - (IBAction)pressedFirstColumnButton:(id)sender {
     NSLog(@"pressed first button in category cell");
 }

If I move the buttons up the ladder in IB then the table reacts, but then the buttons does not get pressed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T16:58:01+00:00Added an answer on May 31, 2026 at 4:58 pm

    The answer is not solved but I did a workaround by making a selector to the buttons and just put the code in there,

    cell.secondColumnButton.tag = guideColumnTwo.GuideID.intValue;
    [cell.secondColumnButton setTitle:guideColumnTwo.Name forState:UIControlStateNormal];
    [cell.secondColumnButton addTarget:self action:@selector(whichButtonDidMasterPressed:)    
                     forControlEvents:UIControlEventTouchUpInside];
    

    I set the buttonLabel to the city and tagged the button with an id.

    It would be great if someone actually solved this anyway.

    The made the

    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    

    method useless.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created custom column(DataGridViewButtonControlColumn) and cell(ButtonControlCell) classes to hold System.Windows.Forms.Button controls. The buttons get
Lets say I have one row with three columns - some buttons on left
I have div which has three buttons as, <div id=buttons> <input id=preview class=ButtonStyle type=submit
I have one label field and three buttons with the name of red, yellow,
I have a group of three radio buttons. Depending on which radio button is
I have a Manager class and also one frame which isReport .In the frame
I have a datagrid view with three columns and one button column. My aim
I have three radio buttons with same name and different values.When I click the
In my page I have three radio buttons and I want to checked the
I have three button named(titled) hello, nothing, heaven and one label (IBOutlet UIlabel lab).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.