警告:在演示文稿正在进行时,尝试在<uinavigationcontroller:0x8ca44f0 =“”>上显示<resetsignindetailsviewcontroller:0x8ca9640 =“”> </uinavigationcontroller:> </resetsignindetailsviewcontroller:>

时间:2014-04-27 13:28:43

标签: ios uinavigationcontroller

我收到这样的警告警告:在演示正在进行时,尝试在UINavigationController:0x8ca44f0上显示ResetSigninDetailsViewController:0x8ca9640! 而且我正在向ResetSigninDetailsViewController发送一个数组来准备segue方法,即使ResetSigninDetailsViewController中的数组总是空的......  请提前感谢更好的解决方案:)

- (IBAction)didClickCantAccessMyAccount:(id)sender
    {


        [self performSegueWithIdentifier:@"ResetSigninDetailsView" sender:self];

        [self dismissViewControllerAnimated:YES completion:nil];

      // when clicked the button the ResetSigninDetailsViewController have to be 
      load with getting array loaded in  that(ResetSigninDetailsViewController)


    }
    - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender

    {
        if ([segue.identifier isEqualToString:@"ResetSigninDetailsView"])
        {

            ResetSigninDetailsViewController *resetSigninDetailsObject =( ResetSigninDetailsViewController *)segue.destinationViewController;

            resetSigninDetailsObject.userDetailsArray = userInformationArray;

        //userInformationArray is an array in current viewcontroller

        }
    }

2 个答案:

答案 0 :(得分:3)

我认为:

[self performSegueWithIdentifier:@"ResetSigninDetailsView" sender:self];

[self dismissViewControllerAnimated:YES completion:nil]

应该是:

[self dismissViewControllerAnimated:YES completion:^{
    [self performSegueWithIdentifier:@"ResetSigninDetailsView" sender:self];
}];

答案 1 :(得分:0)

我想

[self performSegueWithIdentifier:@"ResetSigninDetailsView" sender:self];
只要它是PUSH segue

就足够了