iOS: Storing CGRect Items into an NSArray/NSMutableArray
You can store CGRect items into an NSArray. You need to store them as NSValue types: Here’s how to retrieve the items later on:
You can store CGRect items into an NSArray. You need to store them as NSValue types: Here’s how to retrieve the items later on:
When you have an NSArray object containing NSString objects in your View Controller, you might want to create a static version of it, especially when the user will only see the same values each time the view appears. First, add your C array pointers to NSString constants by following instructions in my earlier post. In… Read More iOS: Statically Create an NSArray Object in View Controller