//SecondPage.h
@property (nonatomic, copy) NSString *secondLabelText;
+(SecondPage *) newAlloc;
+(id) totalOpen;
+(void)setSecondLabelText;
第二页.m
@synthesize secondLabelText; //DOESNT WORK.
NSString* secondLabelText; //DOES WORK.
+(void) setSecondLabelText
{
secondLabelText = @"TEST";
}
+(id) totalOpen
{
[self setSecondLabelText];
return secondLabelText;
}
有没有办法可以对类变量使用综合?