I am trying to pass Array from one class to another I used
detailViewController.nameArray = [feed valueForKey:@"id"];
This is working fine..when I used like
detailViewController.nameArray=[[[feed valueForKey:@"comments"]valueForKey:@"data" ]valueForKey:@"id"]];
It is throwing exception ….
while pass this into string is fine
NSString *commentId = [NSString stringWithFormat:@"%@",[[[feed valueForKey:@"comments"]valueForKey:@"data" ]valueForKey:@"id"]];
use like
detailViewController.commentId= commentId ;
In next class
Cell.textLabel.text = commentId;
This is showing all the comments in one cell. I have to show one comment in one cell.. How can I do this?
The docs at:
http://developers.facebook.com/docs/reference/api/post/
Claim that comments is a:
In which case
[[feed valueForKey:@"comments"]valueForKey:@"data"]should return an NSArray, in which you’ll find the comment objects themselves, with their IDs.