Programmgesteuertes Verwandeln von ViewController in einen UITableViewController

Ich habe derzeit eineMatchCenterViewController dass ich programmgesteuert in einen UITableViewController verwandeln möchte. Ich habe versucht, dies anhand von Tutorials zu tun, die ich gefunden habe, aber es scheint nicht zu erscheinen.

MatchCenterViewController.m:

#import "MatchCenterViewController.h"
#import <UIKit/UIKit.h>

@interface MatchCenterViewController () <UITableViewDataSource, UITableViewDelegate>
@end

@implementation MatchCenterViewController

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    static NSString *CellIdentifier = @"newFriendCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"newFriendCell"];

    if (cell == nil) {
        cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier];
    }
    //etc.
    return cell;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
}

@end

Antworten auf die Frage(1)

Ihre Antwort auf die Frage