Quote:
Originally Posted by ccctennis
I have the same Idea as you and am trying to make a joke app! Can you post the final source code of the app so I can download it to see what I did wrong? I keep getting so many errors! 
|
I would like to see the source code too.
Quote:
Originally Posted by orange gold
perhaps you could just manual enter all of the jokes through code... it would appear to be easier in my opinion
Code:
NSArray *myranjoke = [NSArray arrayWithObjects:
@"Joke #1 goes here",
@"Joke #2 goes here",
@"Joke #3 goes here,
@"Joke #4 goes here", nil]; // you can add as many as you want.. not just 4
int chosen = arc4random() % [myranjoke count];
nameofUiLabel.text = [myranjoke objectAtIndex: chosen];
|
It might be easier, but it wouldn't be as neat. It would be easier to edit if you created them from a plist then edited it.