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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:29:21+00:00 2026-06-09T02:29:21+00:00

So I am using WEPopover to display a custom view controller pop up. I

  • 0

So I am using WEPopover to display a custom view controller pop up. I have a UIView in which inside it has another UIView called containerView. Inside this containerView, I have a UIButton. This is where I wanted to present my popover from. So here’s what I did:

  [self.popoverDialog presentPopoverFromRect:sender.frame inView:self.containerView permittedArrowDirections:UIPopoverArrowDirectionDown animated:YES];

The issue is that the arrow and everything is showing from this button, but the popover goes out of self.containerView bounds. How can I make it so that the popover is displayed within the containerView bounds?

EDIT:

A picture is worth a thousand words, so here it is:
The light gray is the containerView I mentioned above. THe popover theoretically should be shown within that light gray bounds not going outside.

enter image description here

  • 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-09T02:29:22+00:00Added an answer on June 9, 2026 at 2:29 am

    For the view that is contained inside the popover, go to it’s view controller and set it’s property contentSizeForViewInPopover. Here you can set the size so that it fits the bounds of your containerView.

    OP wants to position the popover so that it only shows up in his container view. I found this bit of code in the WEPopoverController.m file

    - (void)repositionPopoverFromRect:(CGRect)rect
                           inView:(UIView *)theView
         permittedArrowDirections:(UIPopoverArrowDirection)arrowDirections {
    
    CGRect displayArea = [self displayAreaForView:theView];
    WEPopoverContainerView *containerView = (WEPopoverContainerView *)self.view;
    [containerView updatePositionWithAnchorRect:rect
                                    displayArea:displayArea
                       permittedArrowDirections:arrowDirections];
    
    popoverArrowDirection = containerView.arrowDirection;
    containerView.frame = [theView convertRect:containerView.frame toView:backgroundView];
    

    }

    You could possibly call this method and it might reposition your popover so that it is now inside your container viw.

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

Sidebar

Related Questions

Merry Christmas. I have a view which contains a uitableview. Iam using wepopover to
Using android 2.3.3, I have a background Service which has a socket connection. There's
(Using MVC 2) From inside my controller action, I need to display the url:
Using MVVM. I have a DataTemplate which I am using to display an expander
Using MVC2 I have an AJAX form which is posting to a bound model.
I have an app which uses btouch'd bindings for WEPopover. You can find the
Using C#, I need a class called User that has a username, password, active
Using Delphi 2010. I am looking for (possibly) a function or procedure which can
Using Core Data, I have a fetch request to fetch the minimum of a
I'm using an iOS popover implementation from here: https://github.com/PaulSolt/WEPopover What's the best way for

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.