title: How to declare a variable in objective-c (iOS 7) to store a "cell" based "grid", where every cell has multiple atributes?
body: <p>I’m creating a grid based drawing editor for iOS 7 and I will be using the “canvas/screen” (UIView type) divided into multiple “cells”, each one with the following attributes:</p>
  
  <p>image (object)</p>
  
  <p>used character (String)</p>
  
  <p>column (int)</p>
  
  <p>line (int)</p>
  
  <p>foregroundColor (int)</p>
  
  <p>backgroundColor (int)</p>
  
  <p>Example:</p>
  
  <p>I will need something like this:</p>
  
  <p>myGrid[0].image</p>
  
  <p>myGrid[0].usedChar</p>
  
  <p>myGrid[0].column</p>
  
  <p>myGrid[0].line</p>
  
  <p>myGrid[0].foregroundColor</p>
  
  <p>myGrid[0].backgroundColor</p>
  
  <p>I’ve managed to make the basic drawing work (image placement on the screen), but I need to keep track of everything the user draws, like in an mutable array representing the full canvas grid containing every cells and their respective attributes as mentioned above.</p>
  
  <p>What would be the best datatype to store the canvas grid? NSDictionary? Array of Structs? Anything else? and the main question, how to declare it? :)</p>
  
  <p>Thanks in advance!</p>