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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:35:08+00:00 2026-05-12T05:35:08+00:00

When a view will disappear I would like to collect the values of some

  • 0

When a view will disappear I would like to collect the values of some of the switches in my table view, I have pointers to the index path, cell, and control how do I get a pointer to the table view so I can properly point the cell pointer… if I’m thinking correctly I should be able to then get the value of the control pretty quickly throught these pointers… unless somebody has a better idea. If I’m thinking incorrectly I would still like to know how to point to a specific tableView.

Thanks,

Thanks for the answer, it is a regular view, so I made a property of UITableView, and then I used the interface builder to connect thisTableView property to the actual tableView.

If there’s a better way let me know. Thanks,

  • 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-12T05:35:08+00:00Added an answer on May 12, 2026 at 5:35 am

    Wjy don’t you have a pointer to your UITableView? Assuming you are using a UITableViewController the class provides one for you (self.tableView). If not you probably should just add a property in your UIViewContoller sublcass for the tableview and put it there.

    The table view is, after all, one of the large objects that view controller is controlling and it lives across multiple method calls. Representing your relationship to it with a retained property asserts ownership, just make sure to release it in dealloc and in viewDudUnload if it came from a nib.

    Having said that, currently you can generally find a UITableView from a UITableViewCell by asking the UITableViewCell for it superView. This is a bad idea since there is no guarantee there won’t be some intermediary cells in the future, since hierarchy of cells you did not layout yourself is an internal implementation detail (a lot of apps broke on 3.0 because they walked around inside Apple’s view hierarchies and something changed).

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

Sidebar

Related Questions

I have a view that will be displaying downloaded images and text. I'd like
I want to have a game where the view will move around as the
Hi, For a view that will be submited I have two actions with the
i have small query as follows: If i will make view state property of
After a UIAlertView is closed, I would like to reload a view (run viewWillDisappear
I have an iOS 5.0 application for which I would like to change the
I have a div that will have a few images in it. I would
I would like to pass two strings from current view to userViewController when this
I have several UITextFields listed below each other and would like to move the
I have an in-memory cache that I would like to write out to file

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.