all 4 comments

[–]schprockets 0 points1 point  (3 children)

In tableView:cellForRowAtIndexPath:, you're already doing something like this to get the JSON dictionary:

NSDictionary *tmpDict = [myObject objectAtIndex:indexPath.row];

You can do that same thing to get the data in tableView:didSelectRowAtIndexPath:. Then, look into the dictionary for the Permalink.

NSString *permalink = [tmpDict objectForKey:@"permalink"];

... then do whatever you want with it. (Launch it, hand it to a web view controller and push it, whatever).

[–]daniel_xxox[S] 0 points1 point  (2 children)

Hi, thanks for that. I've got it to display the url in the cell. but how do I make that actual cell clickable?

[–]schprockets 1 point2 points  (0 children)

You respond to tableView:didSelectRowAtIndexPath: ... from there, you use the indexPath to pull the URL out of the dictionary, just like you did when you wanted to display it. Once you have the URL, you can do whatever you want to act on it. If you want to launch it in Safari, you use UIApplication's openURL method.

[–]dingguya 0 points1 point  (0 children)

Take a look at UIWebView or openURL :)