對於我的應用程序,我試圖將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