Thursday, February 16, 2012

How to store CGRect in an Array or Dictionary ?

Here is the code snippet

CGRect a = CGRectMake(0, 0, 720, 465);
CGRect b = CGRectMake(0, 465, 720, 465);
NSArray *array=[[NSArray alloc]initWithObjects:[NSValue valueWithCGRect:a],[NSValue valueWithCGRect:b], nil];




No comments:

Post a Comment