-2

I have a NSObject variable which represents something like :

{objectID : 2, name : John Doe, url : www.test.com } 

I want to extract only the url from the NSObject variable.

How can I do that?

orkoden
  • 18,946
  • 4
  • 59
  • 50
user782400
  • 1,617
  • 7
  • 30
  • 51

1 Answers1

2

I guess you can use

[myObj valueForKey:@"url"]
r4id4
  • 5,877
  • 8
  • 46
  • 76