Pages

Wednesday, March 20, 2013

Making a scoreboard on XCode

Hey guys,

I've been working on an iOS app for a few days now and my knowledge of objective C is very poor, so I'm encountering some difficulties. I'm trying to create arrays within arrays, so the way it would work would be I would have 1 array with {1, 2, 3}. Each 1, 2, 3 when run on the simulator would be different options, but it would be 1 prototype cell and 1 array. If I clicked on 1, I want it to lead to array {1a, 1b, 1c}. If I click on 2, I want it to lead to array {2a, 2b, 2c}. I tried nesting an array within array {1,2,3} but it didn't work so great, so I'm super stuck. Any help would be greatly appreciated!!!

 

To be clearer let me explain what I want my app to do. So I want my app to be able to return scores for our school's sports games. We have 3 seasons of sports, so my initial array would be

{Season 1, Season 2, Season 3}

And in Season 1 we have soccer, cross country, and volleyball. If the user clicks Season 1, I want the next array to be Soccer, Cross Country, and Volleyball. And then the next array to be Results, Standing, Ranking.

So if the user wanted to see Soccer rankings, he'd click into Season 1, then soccer, then rankings.

By 1 prototype cell I mean you can create prototype cells on storyboard on Xcode, and on that view controller I only have 1 prototype cell that references one array.

 

I have been struggling with this issue for DAYS, and I would like some help.. PLEASE! A gracious angel out there, if you could give us an advice or a  sample code, it would be the world to me!!


View the original article here

0 comments:

Post a Comment