Passing a NSString to another ViewController using classes
- by Jeff Kranenburg
I know this insanely simple, but I am re-teaching myself the basics and trying to get my head around this:-)
I have one ViewController called MainVC and I have one called ClassVC
In ClassVC I have this code:
@interface ClassVC : UIViewController
{
NSString *mainLine;
}
@property (nonatomic, retain) NSString *mainLine;
@end
and I have this…