title: TableView with Array (Objective-C)
body: <p>I have a Problem with the Arrays, I have tried to load my
  TableView data from a MutableArray. But I failed when trying...
  I get no mistakes, but if I open the TableView, the View is empty.
  Here is my Code, maybe you have any ideas.</p>
  
  <pre><code>- (void)viewDidLoad
  {
      [super viewDidLoad];
  
      [self.tableView reloadData];
      NSLog(@"Wert von tE nachdem die Seite geladen hat, ist wie folgt: %d", trickEins);
  
  }
  
  -(NSMutableArray *)mutableArrayAusTricksArray:(NSArray *)array {
  
      NSLog(@"Wert: %d", trickEins);
  
      self.tricksFavoriten = [NSMutableArray new];
  
      if (trickEins  == 2)  {[self.tricksFavoriten addObject:@"Body Feint"];};
      if (trickZwei  == 2)  {[self.tricksFavoriten addObject:@"Stepover"];};
      if (trickDrei  == 2)  {[self.tricksFavoriten addObject:@"Reverse Stepover"];};
      if (trickVier  == 2)  {[self.tricksFavoriten addObject:@"Ball Roll"];};
      if (trickFuenf == 2)  {[self.tricksFavoriten addObject:@"Drag Back"];};
      [self.tableView reloadData];
  
      return self.tricksFavoriten;
  
  }
  - (void)didReceiveMemoryWarning
  {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  #pragma mark - Table view data source
  
  - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
  {
  #warning Potentially incomplete method implementation.
      // Return the number of sections.
      return 0;
  }
  
  - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
  {
      // Return the number of rows in the section.
  
      return [self.tricksFavoriten count];
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {    
      static NSString *CellIdentifier = @"Cell";
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
  
      cell.textLabel.text = self.tricksFavoriten[indexPath.row];
  
  
      return cell;
  }
  
  
  
  @end
  </code></pre>