forum

Home / DeveloperSection / Forums / Assigning NSMutableSet data into NSArray

Assigning NSMutableSet data into NSArray

Anonymous User 1353 06-Dec-2015

I have stored our Phone Contacts id into an NSMutableSet to do some task.
and now I want to pass mutable set object into an NSArray but I have getting problem when I assign it.
this is my code:

NSMutableSet *newsetadded = [NSMutableSet setWithSet:oldsets];
NSArray *oldDataArray = [newsetadded allObjects];

Please tell me what I am doing wrong in our code..!


Updated on 07-Dec-2015
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By