私の.hファイルには次のものがあります:
#import <UIKit/UIKit.h>
@interface untitled : UIViewController
{
NSMutableString * sResults;
}
@property (nonatomic,retain) NSMutableString * sResults;
@end
私の .mi には次のものがあります。
#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 をチェックするたびに、「範囲外」と表示されます。何が間違っていますか?