Self.navigationController pushViewController hangs on iPad 8.1

While the following line works on iPhone 7.1 / 8.1, on iPad it only works on 7.1. On 8.1, memory usage increases and up to crash:

[self.navigationController pushViewController:detailController animated:YES];

      

This line happens here:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath 
    OBDialogDetailViewController* detailController = [[OBDialogDetailViewController alloc] initWithOption:(OBSelectionFilterOption*)option];
    [self animateChangeForView:nil atIndexPath:indexPath toRect:CGRectMake(0, 0, 0, 0) andNewHeight:0];
    if (self.navigationController)
    {
        [self.navigationController pushViewController:detailController animated:YES];
    }
}

      

Since I just got responsible for this app, it has grown over the years and has no documentation, I got a little desperate. I've searched and tried several answers and solutions over the course of two days.

Please tell me what additional information I can provide.

enter image description here

+3


source to share


1 answer


This will not happen in all scenarios. But a couple of things I would like to mention:

  • I was trying to play an encrypted video (heavy file) in the UINavigationController viewpoint manager. The method that decodes and loads the video in this viewcontroller takes a while when I load it into viewDidLoad. In this case, use the following code.

    [self performSelectorInBackground: @selector (createVideoPlayer) withObject: nil]; [self performSelectorInBackground: @selector (createVideoPlayerControllerView) withObject: nil];

  • Please refer to this link to manage memory issues even if you are using ARC.



This may not answer your question directly, but it will certainly help you debug. Please email any solution you get. Thank.

0


source







All Articles