I have #imported the FirstViewController.h
and i get the error “expected ‘:’ before ‘.’ token”
NSString *myString = RoutineTitle.text;
[FirstViewController.routines addObject:myString];
What am i doing wrong? Someone please enlighten me!
Thanks,
Sam
Is “routines” a member of FirstViewController? It sort of looks like “FirstViewController” is a class name, not an instance name, but I could be mistaken.
If you are in “FirstViewController”, and “routines” is a variable in scope that is an NSArray or NSMutableArray or similar, just change it to: