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 8354735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:38:36+00:00 2026-06-09T09:38:36+00:00

I am showing a Popover from a Button which is placed in the header

  • 0

I am showing a Popover from a Button which is placed in the header of a UITableView.

-(void) addButtonClicked:(id)sender{

 [addPopOverVC setPopoverContentSize:CGSizeMake(POPOVER_WIDTH, numberOfRowsInTable * addOptionsTable.rowHeight)];
 [addPopOverVC presentPopoverFromRect:[sender bounds] inView:sender 
                    permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES]; 
 addPopOverVC.passthroughViews = nil;
}

the app freezes on the second line (when I call method presentPopoverFromRect) without any warning / error in debugger. Also when I try to debug it the step over just disappears at that line and app becomes unresponsive as if it never returned back.
I havent seen such a behavior before . addPopOverVc is a UIPopoverViewController. all parameters have values which are not nil .

  • 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-09T09:38:38+00:00Added an answer on June 9, 2026 at 9:38 am

    1) The sender in this case was the button who triggered the click event. You shouldn’t use the button to present the popover in, but instead the real view where you want to present the popover.

    2) Are you sure addPopOverVC was initialized and retained correctly?

    cheers,
    anka

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

Sidebar

Related Questions

I'm showing a view in a popover. When I click a button in this
I have the right view selected from my PopOver but instead of showing in
I have a UITableView which lies in a NavigationController that is in a popover.
Instead of showing the keyboard I want to display a popover view when a
When showing data from a mysql table on an php page does it have
Play Button is showing and when i hit play button it is playing audio
Im showing the AirPrint options from a UIButton using the presentFromRect method, everything is
I'm developing a iPad app which has a popover which appears to show you
We are showing results in a table from a MySQL database with checkboxes inside
I have created a popover and it is showing me my in app purchase

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.