Quote:
Originally Posted by NorCalJazzer
I am trying to develop a fairly simple iPhone app (I think) and have been going through tutorials in Xcode for about 2 weeks and haven't seen anything I need yet. I would love if someone could help me out or point me in the right direction.
All I am trying to do is create an app for iPhone that has a 4x5 grid, each square capable of being "on" or "off" by touching it. I need each square to output 2 numbers, one for on, and one for off. That is essentially what I need... any help?
|
You could just lay out 20 imageviews (or buttons) on the main view in your nib file. Set up a small array of bools to hold the states. Hook the imageviews up to IBOutlets & give them tags so you know which one reports back.
Send their touch up inside events to a function which checks the tag & sets the array element required.
That would work.