title: NSArray is empty after sending data from my class to TableViewController
body: <p>I have a Data class that inherits from NSObject.<br>
  In this class I handle my data requests.<br>
  After this I want to send the data that it holds in an NSMutableArray to my UITableViewController.</p>
  
  <p>How can I fix this?</p>
  
  <pre><code>@interface Data : NSObject
  
  @property(nonatomic,strong) NSMutableArray *data;
  
  -(NSMutableArray *) loadData;
  
  -(id)init;
  
  @end
  
  
  @implementation Data
  
  @synthesize data;
  
  -(id)init {
  
      self = [super init];
  
      if(self){
          self.data = [[NSMutableArray alloc]init];
      }
  
      return self;
  
  }
  
  - (NSMutableArray *)loadData {
  
  
      NSString *url = @"http://localhost/xampp/flashbackapi/";
  
      AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager];
      [manager GET:url parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
  
  
          [data addObject:responseObject];
  
  
      } failure:^(AFHTTPRequestOperation *operation, NSError *error) {
          NSLog(@"Error %@",error);
      }];
  
      return data;
  
  }
  
  @end
  
  
  #import &lt;UIKit/UIKit.h&gt;
  #import "Club.h"
  #import "Data.h"
  
  @interface ClubsTableViewController : UITableViewController
  
  @property(nonatomic,strong) Data *holderData;
  @property(nonatomic,strong) NSMutableArray *teams;
  
  
  
  @end
  
  #import "AFNetworking.h"
  
  @implementation ClubsTableViewController
  
  
      - (void)viewDidLoad
      {
          [super viewDidLoad];
  
          self.holderData = [[Data alloc]init];
          self.teams = [[NSMutableArray alloc]init];
  
          self.teams = self.holderData.loadData;
  
          NSLog(@"%@",self.teams); //this array is empty.. why? 
  
  
  
      }
  </code></pre>