title: Put UITableView and datasource/delegate in separate class doesn't work (XCode 4.2)
body: <p>I tried to put the delegate and the datasource of my tableview into a separate class. My problem is that it always crashes with no error. This is why I can't figure out what I'm doing wrong. Maybe someone can tell me. Maybe it is also important that I'm using ARC.</p>
  
  <p>So that's my simple code:</p>
  
  <pre><code>//ViewController.h
  @interface ViewController : UIViewController {
      UITableView *myTableView;
  }
  
  @property (strong, nonatomic) IBOutlet UITableView *myTableView;
  
  @end
  </code></pre>
  
  <hr>
  
  <pre><code>//ViewController.m
  #import "ViewController.h"
  #import "MyTableViewDatasourceDelegate.h"
  
  @implementation ViewController
  @synthesize myTableView;
  
  - (void)viewDidLoad
  {
      [super viewDidLoad];
      MyTableViewDatasourceDelegate *test = [[MyTableViewDatasourceDelegate alloc] init];
  
      self.myTableView.delegate = test;
      self.myTableView.dataSource = test;
  }
  
  @end
  </code></pre>
  
  <hr>
  
  <pre><code>//MyTableViewDelegateDatasourceDelegate.h
  @interface MyTableViewDatasourceDelegate : NSObject &lt;UITableViewDataSource, UITableViewDelegate&gt;
  
  @end
  </code></pre>
  
  <hr>
  
  <pre><code>//MyTableViewDatasourceDelegate.m
  @implementation MyTableViewDatasourceDelegate
  
  -  (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 
  {
      return 1;
  } 
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
  {
      static NSString *CellIdentifier = @"Cell";
  
      UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
      if (cell == nil) {
          cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"];
      }
  
      cell.textLabel.text = @"Test";
      return cell;
  }
  
  @end
  </code></pre>