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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:32:39+00:00 2026-06-11T11:32:39+00:00

My goal is to keep same coordinates for a UIPopoverController with just changing arrow

  • 0

My goal is to keep same coordinates for a UIPopoverController with just changing arrow offset.
So basically i have three buttons touching each of them shows up a popover. When presenting this popover it changes position on the screen, but i do not want that.
To be more clear look at screenoshots:

enter image description here

enter image description here

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-11T11:32:40+00:00Added an answer on June 11, 2026 at 11:32 am

    For my popover I wanted the arrow to be top-left instead of top-center (which is default).

    I’ve managed to get the result below (screenshot) by setting the popoverLayoutMargins property of the UIPopoverController. You can use it to reduce the screen-area used in the internal calculations of the UIPopoverController to determine where to show the popover.

    UIPopovercontroller arrow on the left

    The code:

    // Get the location and size of the control (button that says "Drinks")
    CGRect rect = control.frame;
    
    // Set the width to 1, this will put the anchorpoint on the left side
    // of the control
    rect.size.width = 1;
    
    // Reduce the available screen for the popover by creating a left margin
    // The popover controller will assume that left side of the screen starts
    // at rect.origin.x
    popoverC.popoverLayoutMargins = UIEdgeInsetsMake(0, rect.origin.x, 0, 0);
    
    // Simply present the popover (force arrow direction up)
    [popoverC presentPopoverFromRect:rect inView:self.view permittedArrowDirections:UIPopoverArrowDirectionUp animated:YES];
    

    I think you’ll be able to get the desired result by tweaking the above.

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

Sidebar

Related Questions

Goal: I am trying to create a UI with 2 checkboxes per line, each
Given the following XAML my goal is to keep the columns AAA, BBB, CCC
My goal is to stop having to have a local copy and a live
My goal is to keep in application_helper only the methods that I use in
I've just gotten my production site up and running. I have a lot more
I want to have two items on the same line using float: left for
Problem: I have two spreadsheets that each serve different purposes but contain one particular
Problem: I have two overlapping 2D shapes, A and B, each shape having the
To keep things organized I determined there are three item classes that a spider
Goal : I wants when I drag image it become fade so we can

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.