How would I store CGRect objects in a NSMutableArray, and then later retrieve them?
We store the CGRect
,CGPoint
,CMTime
objects in a NSMutableArray
,
[arrayName addObject:[NSValue valueWithCGPoint:MyCGPoint]]
[arrayName addObject:[NSValue valueWithCGRect:MyCGRect]]
[arrayName addObject:[NSValue valueWithCMTime:MyCMTime]]
[arrayName addObject:[NSValue valueWithCMTimeRange:MyCMTimeRange]]