ヘッダーファイル:
@interface Picker : UITableViewController <NSXMLParserDelegate> {
NSMutableString *currentRow;
}
@property (nonatomic, retain) NSMutableString *currentRow;
@end
実装ファイル:
#import "Picker.h"
@implementation Picker
@synthesize currentRow;
- (id)initWithStyle:(UITableViewStyle)style
{
self = [super initWithStyle:style];
if (self) {
currentRow = [[NSMutableString alloc] initWithString:@"VehicleYear"];
}
return self;
}
@end
これをデバッグし、currentRowが文字列で初期化される場所にステップインした後。ステートメントにカーソルを合わせてからcurrentRowにカーソルを合わせると、値に「InvalidSummary」と表示されます。実際のメモリ参照ではなく、0x33112のようなアドレス参照を取得するため、ポインタを取得しているように見えます。何をしても、このプロパティで有効な文字列を取得できないため、すべての比較が失敗します。私は何が間違っているのですか?