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 8012641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:23:07+00:00 2026-06-04T19:23:07+00:00

I have created a subclass of a UITableViewCell that I am using with some

  • 0

I have created a subclass of a UITableViewCell that I am using with some UILabel’s. Now I want to add a checkbox or button to this subclass. After the user clicks this button, I want to move perform a segue and pass an ID or tag.

Currently, this is what I have in the subclass. activityComplete is the button click action

- (IBAction)activityComplete:(id)sender {
     NSLog(@"row: %d", activityComplete.tag);
}

In my main class, I am calling this at cellForRowAtIndexPath:

cell.activityComplete.tag = [activityId intValue];

This is currently working and it passes the ID as the tag when I click the button. The problem is, at this point I don’t know how to perform a segue. I need to call the segue from my main class but the action is happening on my subclass.

Any help would be appreciated.

  • 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-06-04T19:23:08+00:00Added an answer on June 4, 2026 at 7:23 pm

    If you already have a segue to the scene you wish to transition to, even if it is connected to a view other than your button, ensure that you have given the segue an Identifier in the storyboard. Then you can call the performSegueWithIdentifier:sender: method using the identifier you gave to the segue and using the button as the sender.

    This will call the scene as if you had hooked up the segue directly.

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

Sidebar

Related Questions

I have created a custom UIButton (UIButton subclass) for my application. Within this button's
I created a subclass of UITableViewCell and added two identical UIView s that have
I have created a subclass of UITableViewController that is used as the custom class
I have a custom UITableViewCell created in IB. All my cells will have this
I have created a subclass of a generic list so that I could implement
I have created a subclass of QGLwidget and I was hoping that I could
I have created a subclass of the TextBox class so that I can capture
I have created a custom subclass of UIView for an interface element that I
I have created the following subclass to do some custom drawing: // DocumentIconView.h @interface
I have created a class named ListCell which is a subclass of UITableViewCell .

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.