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 09-25-2010, 12:49 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 14
NichMadl is on a distinguished road
Default Creating different text views within a table

I have my first app halfway finished, but I am not sure how to proceed next. Basically, the app displays different categories and then displays information regarding the selected category. I have the array set up and the views switch when selected, but i don't know how to display different text with each category. I appreciate any responses and advice.
NichMadl is offline   Reply With Quote
Old 09-25-2010, 09:48 AM   #2 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

UILabel has a text property, which you can set to any NSString.

If you want to customize the text in a tableview cell, try cell.textLabel.text.

Otherwise, we'll need more data on your setup.
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!
musicwind95 is offline   Reply With Quote
Old 09-26-2010, 01:16 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 14
NichMadl is on a distinguished road
Default

what could i share with you for more specifics?
NichMadl is offline   Reply With Quote
Old 09-26-2010, 07:39 PM   #4 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

I'm not quite sure what you're asking, or trying to do. Describe the situation in terms that aren't specific to your app, and/or include screenshots.
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!
musicwind95 is offline   Reply With Quote
Old 09-26-2010, 10:04 PM   #5 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 14
NichMadl is on a distinguished road
Default

the first view is a list of items. once i select an item, a second view needs to show information about that specific selection. each item displays different information.

thus far, i have been able to create the list of selections, but i don't know how to populate the second view with the selection-specific information.
NichMadl is offline   Reply With Quote
Old 09-27-2010, 03:54 PM   #6 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

Displaying text...

In IB, drag out a some UILabels (as many as you need, plus "description" labels as necessary). Hook them up to IBOutlets in your code, and then you can change their text by using the text property, as in

myLabel.text = @"An NSString goes here";
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!
musicwind95 is offline   Reply With Quote
Old 09-30-2010, 10:04 PM   #7 (permalink)
Registered Member
 
Join Date: Sep 2010
Posts: 14
NichMadl is on a distinguished road
Default

Each of these sub-sections are like mini-chapters and the app is like a book. Are labels going to be big enough?
NichMadl is offline   Reply With Quote
Old 10-07-2010, 01:50 PM   #8 (permalink)
Fly-by-night Innovator
 
Join Date: Jun 2010
Posts: 364
musicwind95 is on a distinguished road
Default

Probably. Try it out—that's all I can tell you.
__________________
If I have helped you, please consider donating. I use PayPal. It would mean a lot to me!


For more iOS Development, check out my blog—Cups of Cocoa. All visitors welcome, but especially beginners!

Hope I have helped!

Please check out IceFall, a new action game available in the App Store!
musicwind95 is offline   Reply With Quote
Reply

Bookmarks

Tags
arrays, table view, text view, view change

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: 345
9 members and 336 guests
2ndSegment, headkaze, mistergreen2011, nobstudio, Objective Zero, pungs, revg, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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