Problem while retrieving Data in NSArray,NSDictionary (Solved with PFObject before)

I’m trying to replace Parse with Backendless in my app but I’m kinda stucked right now. I need to retrieve all the data from Backendless to the device and it in an NSMutableArray. Here is the code that I used with Parse:
-(void) getDataForArray
PFQuery *query = [PFQuery queryWithClassName:kParseClassName];
NSArray *arr = [query findObjects];
puzzleArray = [[NSMutableArray alloc] init];
for (PFObject *dic in arr) {

NSMutableDictionary *tempDic = [[NSMutableDictionary alloc] init];
tempDic[@“answer”] = dic[@“answer”];
tempDic[@“option_one”] = dic[@“option_one”];
tempDic[@“option_three”] = dic[@“option_three”];
tempDic[@“option_two”] = dic[@“option_two”];
tempDic[@“question”] = dic[@“question”];
[puzzleArray addObject:tempDic];

[[NSUserDefaults standardUserDefaults] setValue:puzzleArray forKey:@“PuzzelArray”];
[[NSUserDefaults standardUserDefaults] synchronize];

self.waitingView.view.hidden = true;
Thanks in advance!
Best Regards,
Kristof Kovacs

This is not very different with Backendless, except with our API you get instances of the specific class - you do not need to extract values from PFObject into your dictionary. Here’s the API doc:

here’s a specific example:

Here’s github repo for the code in the example:

Hope this helps.


I think the github repo is outdated. I just tried that github code for swift in func fetchingFirstPageMenuItems, and I received this error:

fatal error: NSArray element failed to match the Swift Array Element type