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

  • Home
  • SEARCH
  • 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 6040471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:31:07+00:00 2026-05-23T06:31:07+00:00

Sorry if it is not a standard question, but now your solutions can help

  • 0

Sorry if it is not a standard question, but now your solutions can help me out. In my app, I have two classes: ClassA and ClassB. ClassB has a table view in it. I am using a query to populate the table view in ClassB, but the column name through which I have to query is what I get from ClassA, which I want to pass to ClassB and to perform the query and populate the table view. Can I pass a parameter to viewDidLoad or viewWillAppear? These get called when the view loads. Or is there any other method to do so?

  • 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-23T06:31:08+00:00Added an answer on May 23, 2026 at 6:31 am

    Why don’t you declare a property for that?

    @interface ClassB:...
    
    @property (nonatomic, copy) NSString * columnName
    
    @end
    

    and synthesize it in the implementation.

    When you are creating ClassB instance from ClassA then do this,

    ClassB * classB = [[ClassB alloc] initWithNibName:.. bundle:..];
    classB.columnName = theColumnName;
    [self pushViewController:classB animated:YES];
    [classB release];
    

    Make use of this parameter in viewDidLoad.

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

Sidebar

Related Questions

I'm sorry for such a silly question, but I can not fathom the name
Random question, sorry if not appropriate for stackoverflow, but I didn't think it would
Sorry but I am not sure how to ask this question but I am
Sorry to ask this question, but it's now day 3 I try to solve
Sorry for the not so great title, but I'm curious how people build a
Sorry this is not a very well defined question, I am thinking about an
I could be not more sorry guys - the question was a very wrong
Sorry is this is not the correct forum to post this, but I'm running
Sorry the title may not be very clear. Basically I have a wrapper for
Sorry for this question. Basically I have a page where I have it automatically

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.