对于我的应用程序,我试图将CGRect
对象存储到NSMutableArray
中。它正在加载并在日志语句中打印,但试图从数组中取出CGRect
会显示错误。这里是一个代码片段:从数组中获取CGRect
CGRect lineRact = CGRectMake([[attributeDict objectForKey:@"x"] floatValue],
[[attributeDict objectForKey:@"y"] floatValue],
[[attributeDict objectForKey:@"width"] floatValue],
[[attributeDict objectForKey:@"height"] floatValue]);
[lineRactangle addObject:NSStringFromCGRect(lineRact)];
我怎样才能从数组中得到rects?
感谢您的早期重播...... – ajay 2011-03-25 11:40:06