私のアプリケーションでは、CGRect
オブジェクトをに格納しようとしていNSMutableArray
ます。正常に読み込まれ、ログステートメントに出力されますがCGRect
、配列からsを取得しようとすると、エラーが表示されます。コードスニペットは次のとおりです。
CGRect lineRact = CGRectMake([[attributeDict objectForKey:@"x"] floatValue],
[[attributeDict objectForKey:@"y"] floatValue],
[[attributeDict objectForKey:@"width"] floatValue],
[[attributeDict objectForKey:@"height"] floatValue]);
[lineRactangle addObject:NSStringFromCGRect(lineRact)];
どうすれば配列からrectsを取り戻すことができますか?