Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 09-15-2011, 08:08 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2011
Posts: 1
NorCalJazzer is on a distinguished road
Default Beginner needing some help, creating grid

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?
NorCalJazzer is offline   Reply With Quote
Old 09-16-2011, 08:06 AM   #2 (permalink)
Registered Member
 
SundialSoft's Avatar
 
Join Date: Oct 2010
Location: Scotland
Posts: 176
SundialSoft is on a distinguished road
Default

Quote:
Originally Posted by NorCalJazzer View Post
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.
SundialSoft is offline   Reply With Quote
Reply

Bookmarks

Tags
beginner, code, grid

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 399
11 members and 388 guests
7twenty7, chemistry, Gi-lo, ipodphone, pipposanta, QuantumDoja, Retouchable, RobTaku, SLIC, tim0504
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,925
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:32 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0