1

I'm new to iOS development and don't get on well with storyboard.

screenshot of storyboard: http://i.stack.imgur.com/s9VTB.png

I have got the push segue working now. But only pushing from the first tableViewController to the second one is animated and pushing back isn't animated.

In the first 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
    }
}

the second one is not modified.


Update: I deleted the storyboard, did all of them programmatically and now everything works well. Sometimes storyboard is just so confusing...

4

1 回答 1

0

转场是否动画将取决于你如何做。尝试:

 [self.navigationController popViewControllerAnimated:YES];
于 2012-11-05T11:19:55.880 回答