If I want to set my delegate and datasource for my uitableview my app crashes. What I'm doing wrong?
- (void)loadView {
 NSLog(@"AddListViewController");
 ShareListViewController *shareListViewController = [[ShareListViewController alloc] init];
 UITableView *shareListView = [[UITableView alloc]initWithFrame:CGRectMake(100, 30, 100,     200) style:UITableViewStylePlain];
 shareListView.delegate = shareListViewController;
 shareListView.dataSource = shareListViewController;
 [self.navigationController.view addSubview:shareListView];
 [shareListViewController release];
 }
And my ShareListViewController
@interface ShareListViewController : UITableViewController <UITableViewDelegate, UITableViewDataSource>{
 }
 @end
It also not working if I remove the protocols.
Thx for your help