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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-13-2009, 08:46 PM   #20 (permalink)
kohjingyu
iPhone Developer
 
kohjingyu's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 326
Default

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

» Advertisements
» Stats
Members: 158,743
Threads: 89,198
Posts: 380,557
Top Poster: BrianSlick (7,129)
Welcome to our newest member, JohnS.
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:42 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.