I want to create a random strings using array of Dictionary. I want to generate the random questions, when user runs the application. I had done with the random strings using arrays. But i couldn't create random strings using array of dictionary. So how to create a random strings using dictionary. The array of strings would be changed every time, when runs the application, so how can i generate random strings?
For eg:
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"List" ofType:@"plist"];
NSArray* pointStrings = [[NSArray alloc] initWithContentsOfFile:filePath];
My actual array is,
The array is (
{
id = 1;
question = India;
answer = Punjab;
},
{
id = 2;
question = Kolkatta;
answer = "West Bengal";
},
{
id = 3;
question = Mumbai;
answer = Maharastra;
} )
Expected array,
The Random array(
{
id = 2;
question = Kolkatta;
answer = "West Bengal";
},
{
id = 3;
question = Mumbai;
answer = Maharastra;
},
id = 1;
question = India;
answer = Punjab;
})
Thanks.