3

While the following line works on iPhone 7.1/8.1, on iPad it only works on 7.1. On 8.1 the memory usage goes up and up until it crashes:

[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 application, thas has grown over years and has no documentation, I'm a little bit desperate. I searched and tried multiple answeres and solutions for two days now.

Please tell me what more information I can provide.

enter image description here

Sascha Galley
  • 15,711
  • 5
  • 37
  • 51

1 Answers1

0

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

  1. I was trying to play an encrypted video (heavy file) on the destination viewcontroller of UINavigationController. Method which decrypts and loads the video on that viewcontroller's view takes time when I load it in viewDidLoad. In that case, please use the following code.

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

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

This might not answer your question directly, but will certainly help you to debug. Please post whatever solution you get. Thanks.

Community
  • 1
  • 1
Deepak Thakur
  • 3,453
  • 2
  • 37
  • 65