Thursday, February 16, 2012

How to get CGRect from NSValue ?


CGRect a = CGRectMake(0, 0, 12, 12);
CGRect b = CGRectMake(0, 15, 13, 13);
NSArray *array=[[NSArray alloc]initWithObjects:[NSValue valueWithCGRect:a]

//Get CGRect from NSValue
CGRect sectionRect = [[array objectAtIndex:0] CGRectValue];



3 comments:

  1. This comment has been removed by the author.

    ReplyDelete

  2. Thanks for sharing information.
    recharge plans
    Videocon Telecom comes up with LOWEST & UNMATCHED TARIFF in Haryana; Offers ALL LOCAL CALLS at only 25P/min.

    ReplyDelete