I'm converting my ViewController from Objective-C to Swift.
I was wondering if findObjectsInBackgroundWithBlock is the smartest thing to still be using (or if that will load too slow), and if I should be using it the same way.
I'm using it to get my Parse data and save it to my App Group and/or NSUserDefaults.
// Query Parse
PFQuery *query = [PFQuery queryWithClassName:@"data"];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
if (!error) {
NSMutableArray *localMatchup = [@[] mutableCopy];
for (PFObject *object in objects) {
// Add objects to local Arrays
[localMatchup addObject:[object objectForKey:@"matchup"]];
// App Group
NSString *container = @"group.com.ramsden.playoffs";
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:container];
// Matchup
[defaults setObject:localMatchup forKey:@"KeyMatchup"];
NSArray *savedMatchup = [defaults objectForKey:@"KeyMatchup"];
self.matchupArray = localMatchup;
Update:
I tried Lamar's answer below, but am getting an error on the findObjectsInBackgroundWithBlock line that says: '([AnyObject]!, NSError!) -> Void' is not compatible to 'PFArrayResultBlock?

