Converting NSDictionary to NSArray

Viewed 6145

Whats the difference between, these two syntax to convert NSDictionary to NSArray?

//replyInfo is NSDictionary

     NSArray *values=[[NSArray alloc]init];
     values = [replyInfo valueForKey:@"response"];//when this?
     values = [replyInfo allValues];//when this?
4 Answers

You can do like this:

successCallback(@[resultMessage]);

where resultMessage is NSDictionary and successCallback accept NSArray

Related