Программно созданный segue отключает приложение на performSegueWithIdentifier :, Я действительно не хочу использовать раскадровку.Получатель не имеет идентификатора ... программно создан segue
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view.
ViewController *viewController = [[ViewController alloc] init];
self.segue = [[UIStoryboardSegue alloc] initWithIdentifier:@"showInfo" source:self destination:viewController];
//change the background color to white
self.view.backgroundColor = [UIColor whiteColor];
//create the table view
UITableView *tableView = [[UITableView alloc] init];
//initialize the data source and the delegate to self - as the methods are going to be specified in this script
tableView.dataSource = self;
tableView.delegate = self;
//register the class for the tableView
[tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"cell"];
//now assign the table view to our our viewController's property
self.view = tableView;}
Если вы не хотите использовать раскадровку, то почему вы создаете объект класса раскадровки, просто просто выделите init и не используйте его для создания объекта segue. Я предлагаю использовать раскадровку - одна из мощных возможностей Xcode. –