如您所见,我正在尝试performSegue
从 Photo Action View Controller 到 Setting View Controller ( UITableViewController
)。
所以我PhotoActionViewController
直接执行(不使用按钮等),因为我想在用户点击显示中的一个选项时执行此转场AlertView
。在我为SettingsViewController
. segue 执行,但我看不到任何UITableViewCell
. 我怎样才能得到这份工作?
这是我的代码:
- (IBAction)imageViewTapped:(UITapGestureRecognizer *)sender
{
BlockAlertView *alert = [BlockAlertView alertWithTitle:@"New Photo" message:@"Decide what you would like to do with this photo"];
[alert addButtonWithTitle:@"Create New Project" block:^{
// Pushing to New Project Settings Controller
[self performSegueWithIdentifier:@"NPSSegue" sender:self];
}];
[alert addButtonWithTitle:@"Add To Existing Project" block:^{
NSLog(@"Add to existing");
}];
[alert setCancelButtonWithTitle:@"Cancel" block:nil];
[alert show];
}
我没有发帖prepareForSegue
,因为此时它是空的,我不知道是否应该有任何东西。