storyboard push segue没有正确动画

时间:2012-11-05 11:06:36

标签: ios cocoa-touch uikit storyboard segue

我是iOS开发的新手,并且没有与故事板相处得很好。

故事板的屏幕截图:http://i.stack.imgur.com/s9VTB.png

我现在正在推动推送工作。但是只从第一个tableViewController推送到第二个是动画的,并且不会动画回推。

在第一个tableViewController中:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [self performSegueWithIdentifier:@"xxx" sender:self];
}

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    if ([segue.identifier isEqualToString:@"xxx"]) {
        // set some properties of segue.destinationViewController
    }
}

第二个未修改。


更新: 我删除了故事板,以编程方式完成所有这些,现在一切正常。 故事板有时会让人感到困惑......

1 个答案:

答案 0 :(得分:0)

segue是否动画将取决于你是如何做到的。尝试:

 [self.navigationController popViewControllerAnimated:YES];