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 08-21-2008, 10:13 PM   #1 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 2
Default Webservices - table data loaded from JSON but how further?

Hi All,

I followed the tutorials on Iphone Noob with great interest.

My goal is to create a very basic iPhone app that uses the data of one of my websites. In my rails applicataion, I have a restful resource "projects". What I would like to create is:
  • list of all the projects
  • click on a row and go the detailed view of that project
Step 1 is completed. All the projects are coming from my http://localhost:3000/projects.json.

I hope someone can help with me the second step. How can I make each row clickable with the project ID as parameter and make the transision to the detailed view?

Thanks for your help.

Last edited by nicoko; 08-21-2008 at 10:49 PM.
nicoko is offline   Reply With Quote
Old 08-22-2008, 09:33 AM   #2 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 75
Default

I am the auther of the blog.. I hope to get an example of that today. I believe it was you who commented on it wanting to see it.. but the idea is pretty simple.

If you read my blog there is an example to create a custom table cell so follow that.

I am assuming you have a unique ID for each set of data you want to grab.. to make it easy lets call it rowID. So pretty much you create a function in the custom cell called like

-(void)setIDint)id;

or such

then when you create the cell you do like

[cell setID:[jsonData objectForKey:@"id"]];

something like that.. then when you click the cell you can do another function to get the ID and then call the other json endpoint and pull in the data to the new view
hijinks is offline   Reply With Quote
Old 08-22-2008, 06:00 PM   #3 (permalink)
New Member
 
Join Date: Aug 2008
Posts: 2
Default

Hi,

Thanks for your reply. Indeed, I left a comment on your blog.

I can't wait to read your next tutorial as I'm not able to get it done by myself.

Hope you find the time today.

You make me save a lot of time with your tutorials. If there is anything I can do for you (xhtml/css, rails, php), just mail me at the address I left on your blog.
nicoko is offline   Reply With Quote
Old 08-25-2008, 03:03 PM   #4 (permalink)
New Member
 
Join Date: Jul 2008
Posts: 75
Default

I have a tutorial on how to do this

Click a Cell | Iphone Noob

Hope it helps!
hijinks is offline   Reply With Quote
Reply

Bookmarks

Tags
json, table, webservice

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: 458
13 members and 445 guests
banatary70, dapis, darbsllim, Domele, dre, EdwardMichel, HowEver, ilmman, iOSguru, johnRambo, maryrobertson, Objective Zero, Oral B
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 157,853
Threads: 88,914
Posts: 379,297
Top Poster: BrianSlick (7,072)
Welcome to our newest member, banatary70
Powered by vBadvanced CMPS v3.1.0

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