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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-12-2010, 06:48 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 2
JK994 is on a distinguished road
Default Random text in one UILabel

Hi, i'm totally new at the iPhone development (i've just worked in Adobe's ActionScript and some HTML) cause i want to make some money and i have the goal to learn.

I'm making my first app, and it'll be a "Quotes" application, i already made the interface, and the only thing that is missing is that when i tap a button, 6 labels change their content, can someone help me with the needed code to make that?

By the way, can someone link me to a good ObjC or Xcode tutorial for beginners?

thanks!
JK994 is offline   Reply With Quote
Old 06-12-2010, 06:50 PM   #2 (permalink)
Elegance is Infinite
iPhone Dev SDK Supporter
 
TapTouchClick's Avatar
 
Join Date: Jan 2010
Location: Bay Area, CA
Posts: 677
TapTouchClick is on a distinguished road
Send a message via AIM to TapTouchClick Send a message via Skype™ to TapTouchClick
Default

icodeblog and mobile.tutsplus are good for beginners.
__________________
Our website
TapTouchClick is offline   Reply With Quote
Old 06-12-2010, 06:56 PM   #3 (permalink)
Elegance is Infinite
iPhone Dev SDK Supporter
 
TapTouchClick's Avatar
 
Join Date: Jan 2010
Location: Bay Area, CA
Posts: 677
TapTouchClick is on a distinguished road
Send a message via AIM to TapTouchClick Send a message via Skype™ to TapTouchClick
Default

you have multiple choices for this kind of app.

1. messy but easy for beginners. Generate a random number and either set it to correspond to quotes using a switch, or using an NSArray. (clunky and poor)

2. use a datasource like mysql, plist, dictionary, etc.

3. use a web server to call down the quotes. (good for someone with PHP and HTML experience, but poor for the user).
__________________
Our website
TapTouchClick is offline   Reply With Quote
Old 06-12-2010, 07:16 PM   #4 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 2
JK994 is on a distinguished road
Default

Thank you very much, i'll start searching and learning.

For the choices you give me, i think that the third one will need internet access, and i thing i'll be better if it works offline too, the first one will be applied at the main code, so i think that the best way for both user and developer is using an external datasource, and i guess that for the case, is better a plist file (cause i guess is easily).
If you agree with me, please show me how to, thanks!
JK994 is offline   Reply With Quote
Reply

Bookmarks

Tags
beginner, help me, iphone, random, text

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 332
9 members and 323 guests
Absentia, Domele, fiftysixty, givensur, heshiming, linkmx, michaelhansen, PixelInteractive, Sloshmonster
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:12 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0