i have class1 and class2.
im tryin to use Appdelegate to transfer info from class1 to class2,like that:
http://www.iphonedevsdk.com/forum/i...ing-variables-parameters-between-classes.html
have this problem:
1st class:
p.s.:without it all works.
syntax error: expected ':', ',', ';' , '}' or "_Attribute_" before '=' token
why ?
im tryin to use Appdelegate to transfer info from class1 to class2,like that:
http://www.iphonedevsdk.com/forum/i...ing-variables-parameters-between-classes.html
have this problem:
1st class:
Code:
#import "MyAppDelegate.h"
@interface class1:UIViewController{
MyAppDelegate * mainDelegate = (MyAppDelegate*)[UIApplication sharedApplication].delegate;
//and other blablabla
}
p.s.:without it all works.
syntax error: expected ':', ',', ';' , '}' or "_Attribute_" before '=' token
why ?