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 01-10-2009, 12:24 PM   #3 (permalink)
DenVog
Registered Member
 
DenVog's Avatar
 
Join Date: Jan 2009
Location: Silicon Valley, USA
Posts: 500
Default

Quote:
Originally Posted by smasher View Post
In general, you want to make an array of your (images / strings,) then pick a random number, then grab that Item from the array.
Hi Smasher. Thanks very much for taking time to respond. I am completely new to programming, so not entirely sure how to integrate this into my app. As a placeholder, I had a button writing a text string to a label field (shown below).
Code:
- (IBAction)hello:(id)sender {
	helloLabel.text = @"May the Force Be with You";
}
I tried plunking the code you shared into an IBAction in my Controller.m file, substituting the NSLog line for my helloLabel.text line, but couldn't get it to work. I'm sure this is a simple thing to implement, but it is escaping me.

Thanks again for any assistance.

Last edited by DenVog; 01-10-2009 at 12:33 PM.
DenVog is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 274
17 members and 257 guests
adison, Bertrand21, bravetarget, Dracor, falcon76, ForrestShi, iSdkDev, jordanclark1993, leeus, LemonMeringue, lepetitapps, ltgbau, pereorra, rajeshgautam, refreshe, Tambourin, warcrow
Most users ever online was 779, 05-11-2009 at 09:55 AM.
» Stats
Members: 24,226
Threads: 39,006
Posts: 171,094
Top Poster: smasher (2,570)
Welcome to our newest member, mellisakelien54
Powered by vBadvanced CMPS v3.1.0

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