Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7749167
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:58:22+00:00 2026-06-01T10:58:22+00:00

When I am trying to release the object of UIPopoverController ,app gets crashed with

  • 0

When I am trying to release the object of UIPopoverController,app gets crashed with message EXC_BAD_ACCESS. See below code snippet:

UITableViewCell *tblcell=(UITableViewCell*)[heatsv viewWithTag:500+sender.tag];
ResourceDetail *objRDPopup=[[ResourceDetail alloc] init];
UIPopoverController *aPopover1 = [[UIPopoverController alloc]  initWithContentViewController:objRDPopup]; 
[aPopover1 setPopoverContentSize:CGSizeMake(300, 195)]; 
[aPopover1 presentPopoverFromRect:sender.frame inView:tblcell permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[objRDPopup release];
[aPopover1 release]

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:58:23+00:00Added an answer on June 1, 2026 at 10:58 am

    Popovers are not retained when you present them, so it’s not safe to release them when they’re still onscreen.

    Assign your popover to a retained property in your viewController class instead, then release it in your viewDidUnload/dealloc as normal.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to autowire a mocked DAO object for my Spring (v. 3.1.0.RELEASE) test
i'm trying to release UIWebView object but it not free memory. is it have
I am trying to better understand when to properly release an object in a
Being a noob in Iphone dev, just trying to understand. In the code below,
I am trying to use MSBuild release mode, but it always defaults to debug.
With the JavaFX 1.0 release I am trying to layout some SwingButton instances in
I'm trying to write a macro that toggles between release/debug solution configurations in Visual
I'm trying to utilize the parameter feature introduced in the v4 release, but I'm
I'm trying to implement MVC 2 RC version, the latest release of ASP.Net MVC
i am trying to migrate to hibernate 4.1.0.Final with spring 3.1.1.RELEASE and following is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.