0

I have a doubt.

When dismissing a Popover Controller does the initWithContentViewController object gets released? For Example:

UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:content];

Does the content gets released here?

Can
  • 8,502
  • 48
  • 57

1 Answers1

0

Yes. initWithContentsViewController increments the retain count by 1, ARC or non-ARC. Dismissing the popOver will decrement the retain count by 1.

Matt S.
  • 1,882
  • 13
  • 17