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 > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 11-14-2008, 02:09 PM   #1 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 2
Default Displaying Static Text in LeafView

Yeah, I know it is a totally newbie question but I am totally new to Xcode and Mac. I got my iPhone in July, 1st Apple product ever, and became totally addicted to it. I used to read 2 to 3 paperbacks a week (yes, that’s week, not month), but between the day I got my iPhone and now I have read only 2. I figure I have saved approximately $360, which more than covers the cost of the iPhone. And with such further future savings in mind I convinced my spouse that Yes, I really do need to buy an Apple computer. So I got a sweet 2.66GHz 20 inch iMac. Love it. Wow.

I downloaded the iPhone SDK and am determined to learn how to create apps. I have no coding experience, I don’t know any computer languages, but am a fast reader and a quick learner.

I want to create a list of definitions (work related) and the DrillDownSave sample fits my needs quite well. The App will not have a very large audience, but will be useful for students of economics/politics and for others in the field of international trade.

Level 1 is Trade agreements:
Agreement on Internal Trade (AIT), North American Free Trade Agreement (NAFTA), World Trade Organization Agreement on Government Procurement (WTO-AGP) – I’ll be using acronyms for brevity.

Level 2 is Language:
English, French, Spanish

Level 3 will be Terminology:
Procurement, Crown corporation, Exclusions, Tendering, etc. (probably 30 – 40 terms in all)

The Leaf View will contain the definition.
“Procurement”, and in the body the text, “Acquisition of goods and/or services at the best possible total cost, in the right quantity and quality, at the right time.”

I’m good up until the text on the Leaf View.

I’ve been experimenting with UILabel, done several tutorials (a hello world tutorials, my first app etc.) created header files and view controllers, dabbled with strings, arrays and SQL and still cannot get it. I suspect that it is something so basic that the tutes and sample code snippets presume the knowledge is already there. Also, I am sure that once I understand how to this really simple thing, the rest of my learning will be much easier.

Could anyone help me with this? How do I populate a simple UILabel box with static text for various definitions?

Any help, suggestions, advice would be greatly appreciated.
sj_iphone is offline   Reply With Quote
Old 11-15-2008, 03:40 AM   #2 (permalink)
Go Dealloc yourself!
 
Join Date: Oct 2008
Location: Central California
Posts: 130
Default

mylabel.text = @"what i want to display";


is this what you are looking for? It can also be done in IB.
xnakx is offline   Reply With Quote
Old 11-16-2008, 11:32 AM   #3 (permalink)
New Member
 
Join Date: Nov 2008
Posts: 2
Default Thanks

Thanks xnakx - I'll give it a try.
sj_iphone is offline   Reply With Quote
Reply

Bookmarks

Tags
array, dictionary, label, 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
» Stats
Members: 158,884
Threads: 89,229
Posts: 380,763
Top Poster: BrianSlick (7,129)
Welcome to our newest member, karlam963
Powered by vBadvanced CMPS v3.1.0

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