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 03-13-2010, 07:36 PM   #1 (permalink)
Registered Member
 
Join Date: Jul 2009
Location: Wien/Austria
Posts: 242
Default Populate UITableView with Variables

Hi,

currently I am putting the result of a SQL Select into severall UITextFields. As I want to make my app more "Iphone Stylish" I want to put those Variables into a UITableView (like in the Adressbook). How can I achieve this? How can I tell my app that the "username" should be in the first line of the UITableView or that "password" should be in the 2nd, the Nickname in the third,...

Thanks for any feedback and help!

BR,

Stefan
StefanL is offline   Reply With Quote
Old 03-14-2010, 05:37 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2010
Location: Northern Ireland
Posts: 54
Default

When you are talking about 1st, 2nd and 3rd line are you referring to table cells i.e the first cell contains the number the second cell the password and the third the phone number or whatever? Or are you wanting to have a cell with all three of these things one below each other? If its the latter a custom cell would be needed as the cell layouts provided by apple don't allow for three lines only two for each cell. If its the first option which i'm hoping its not because it wouldn't really comply with the HIG (human interface guidelines) to have say

obj 1 name
obj 1 password
obj 1 address
obj 2 name
obj 2 password
obj 2 address

then you going to need a quite custom and confusing

Code:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 

method

Last edited by johnblack45; 03-14-2010 at 05:39 AM.
johnblack45 is offline   Reply With Quote
Reply

Bookmarks

Tags
adressbook, sqlite, uitableview, uitextfield

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:14 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0