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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:43:50+00:00 2026-05-31T05:43:50+00:00

I have a UITableViewController that has custom cells that I have customized with my

  • 0

I have a UITableViewController that has custom cells that I have customized with my own subclass.
In this subclass, I’ve added a button and I want to push a view into the stack of the navigation controller. I have no idea on how to do that since I don’t know how I can access to the navigation controller from my custom cell.

Any idea?

  • 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-31T05:43:51+00:00Added an answer on May 31, 2026 at 5:43 am

    Need more infos here. What class holds the table, what class is the tableview delegate?

    In the most simple case you’re working in one single class. Than it would be [self.navigationController pushViewController: xyz].

    But if you have your own subclassed UITableViewCells, than you need to communicate between the cell class and the viewcontroller. You could do this via setting a property in the cell class or your own customCell delegate.

    You could also just send a Notification ([[NSNotificationCenter defaultCenter] postNotification: @"cellButtonTouchedNotification"]) on which your viewController is listening ([[NSNotificationCenter defaultCenter] addListener: self target: @selector(...) name: @"cellButtonTouchedNotification"]). In this case you could use the userInfo property to remember which cell was touched.

    Anotherway is to make the button accessible from outside (a property eg). Then you could add the target in your tableViewDelegate’s method cellForRowAtIndexPath:. Smth. like [myCustomCell.button addTarget: self selector: @selector(...)]; You could use tags to identify the row myCustomCell.button.tag = indexPath.row.

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

Sidebar

Related Questions

I have a custom subclass of a UITableViewController which has a editable cells in
I have a UITableViewController that has a UISearchbar in its header view. When the
I have a weird problem in a custom UITableCell subClass.This custom cell has a
I have 8 cells that are being built in my UITableViewController. I would like
I have a subclass of UITableViewController. I have code that can add/remove a UISearchBar
I've got a UINavigationController that has a UITableViewController as it's root view. The UINavigationController
I have a UITableViewController, which is RootViewController. It's XIB only has a table view.
I'm developing an app that has an UITableViewController with static cells . Those static
I have a UITableViewController which has a UIView* called errorView that is used to
I have a UITabBarController that has 3 tabs. Each tab contains a UITableViewController. When

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.