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?
Sorry if it is not a standard question, but now your solutions can help
Share
Why don’t you declare a property for that?
and synthesize it in the implementation.
When you are creating
ClassBinstance fromClassAthen do this,Make use of this parameter in
viewDidLoad.