Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-13-2009, 07:46 PM   #20 (permalink)
kohjingyu
iPhone Developer
 
kohjingyu's Avatar
 
Join Date: May 2009
Location: Singapore
Posts: 325
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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 327
14 members and 313 guests
AgCode, ansonl, beginer2007, bluelobster, ceggert, Eagle11, irishkiwi, Jeremy1026, kindelizaxi, mallmertl, mcgrath3, Rudy, slahteine, vargonian
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,221
Threads: 39,001
Posts: 171,067
Top Poster: smasher (2,569)
Welcome to our newest member, kindelizaxi
Powered by vBadvanced CMPS v3.1.0

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