Para mi aplicación, estoy intentando almacenar objetos CGRect
en un NSMutableArray
. Se está cargando bien y está imprimiendo en la declaración de registro, pero tratando de tomar el CGRect
s de la matriz muestra un error. Aquí hay un fragmento de código:Obteniendo CGRect de la matriz
CGRect lineRact = CGRectMake([[attributeDict objectForKey:@"x"] floatValue],
[[attributeDict objectForKey:@"y"] floatValue],
[[attributeDict objectForKey:@"width"] floatValue],
[[attributeDict objectForKey:@"height"] floatValue]);
[lineRactangle addObject:NSStringFromCGRect(lineRact)];
¿Cómo puedo recuperar las pruebas de la matriz?
gracias por su reproducción anticipada ... – ajay