Issue Loading TableView (Objective C)

I am having trouble loading my data into my tableview from Backendless. I noticed many users have had this problem, but all answers seem to be in Swift. Is there any examples in Objective C?
I have tried to follow the Backendless Blog-feature-a-day on github but I can’t seem to replicate the results, nor load the TableView I am trying to load. In addition, the example code does not populate the tableview but just prints results from Backendless.

Hi Amar,

Were you able to retrieve data from Backendless (without a TableView for now)?

Regards,
Mark

Hi Amar,

You could investigate this thread. There is a sample project demonstrating the populating TableView.

Regards,
Slava

Yes i am able to retrieve data from Backendless such as who is the current user when logged in. However, when it comes to retrieving information from Backendless and populating a tableview, there seems to be something wrong. I am now getting Fault 1023 - unable to retrieve data, query contains invalid object. Does this mean something in setup incorrectly with my schema? I am following F16 and F22 of the Blog a day posts.

Hi Vyacheslav,

Thanks for reply. Unfortunatlely, I am looking for something in Objective C. The link you provided is for Swift.

What does the query request look like in your code?

-(void)loadBarbers {
    NSLog(@"\n============ Loading relations with the SYNC API ============");
    
    @try {
        
        QueryOptions *queryOptions = [QueryOptions query];
        [queryOptions addRelated:@"Barbers"];
        
        BackendlessDataQuery *query = [BackendlessDataQuery query];
        query.queryOptions = queryOptions;
        BackendlessCollection *barbers = [[backendless.persistenceService of:[Barbers class]] find:query];
        
        NSArray *currentPage =[barbers getCurrentPage];
        NSLog(@"Loaded %lu barber objects", (unsigned long)[currentPage count]);
        NSLog(@"Total barbers in the Backendless storage - %@", [barbers getTotalObjects]);
        
        for (Barbers *barbers in currentPage) {
            NSLog(@"Barber name = %@", barbers.barberName);
            [self printLocations:barbers.locations];
        }
    }
    
    @catch (Fault *fault) {
        NSLog(@"Server reported an error: %@", fault);
    }

}

Does the “Barbers” table contain “Barbers” column?