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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:35:11+00:00 2026-06-18T04:35:11+00:00

I have a tableview inside a view control on a registration screen. When a

  • 0

I have a tableview inside a view control on a registration screen. When a row is selected in the table, I want to simply close the view that contains the tableview. Something like this:

public override void RowSelected (UITableView tableView, NSIndexPath indexPath)
{
    registrationScreen = new RegistrationScreen();
    registrationScreen.subView.Hidden = true;
}   

I am not sure that I am supposed to be creating a new instance of the registration screen, because the subview is null after I do that and of course it doesn’t work. I think I am missing something really simple, but I am at a loss on how to accomplish. Any help on what I am missing?

  • 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-18T04:35:13+00:00Added an answer on June 18, 2026 at 4:35 am

    I have a lot of problems with encapsulation myself on iOS. I’m always fighting stuff like, how do I access this class from over here inside this one?

    A simple way is to pass in the RegistrationScreen to your UITableViewSource:

    private class YourDataSource : UITableViewSource {
    
        RegistrationScreen screen;
    
        public YourDataSource(RegistrationScreen screen) {
            this.screen = screen;
        }
    
        //rest of class
    }
    

    Pass in the instance of your RegistrationScreen, then you can access screen in your RowSelected.

    Is this on the right track with your question?

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

Sidebar

Related Questions

Hi I have a tableView inside my view. But I want the edit in
I have a third party control that wants me to put a view inside
We have a modal view that contains a Table view that contains UITableViewCells used
I have a View Controller that have a tableView inside it which has different
I have an tableview inside a view because I have a uipicker at the
I have a tableView that present a list of Books, each of the table
I have a tableview and a normal view (let's say view 2) inside a
I want to use the scroll view inside the tableviewcell. I have written the
I have a UITableView inside of a View created from a NIB. the table
I have a movie file that does work. I added a tableview controller inside

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.