в моем файле .h у меня есть:
#import <UIKit/UIKit.h>
@interface untitled : UIViewController
{
NSMutableString * sResults;
}
@property (nonatomic,retain) NSMutableString * sResults;
@end
В моем .m у меня есть:
#import "untitled.h"
@implementation untitled
@synthesize sResults;
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad {
[super viewDidLoad];
sResults = [[NSMutableString alloc] initWithString:@"Hello"];
[sResults appendString:@" World"];
}
@end
Всякий раз, когда я проверяю sResults, он говорит "Out of scope" .. что я делаю неправильно?