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
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
.