• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Popover arrow point never properly aligned
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Popover arrow point never properly aligned


  • Subject: Popover arrow point never properly aligned
  • From: Rick Mann <email@hidden>
  • Date: Thu, 26 May 2016 17:08:21 -0700

I'm presenting a popover from a UINavigationBar UIBarButtonItem. The point of origin of the popover never seems to come out of the center of the UIBarButtonItem. The code I'm using is:

@IBAction
func
shareModel(inSender: AnyObject)
{
    if let model = self.model
    {
        let source = ModelShareActivitySource(model)
        let avc = UIActivityViewController(activityItems: [source], applicationActivities: nil)
        avc.popoverPresentationController?.barButtonItem = self.shareButton
        presentViewController(avc, animated: true, completion: nil)
    }
}
@IBOutlet weak var shareButton: UIBarButtonItem!

Is anyone else seeing this?

--
Rick Mann
email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Application Activation Problem
  • Next by Date: NSSplitViewController changes split size when changing viewcontrollers
  • Previous by thread: Re: Getting the Version Number from an NSRunningApplication?
  • Next by thread: NSSplitViewController changes split size when changing viewcontrollers
  • Index(es):
    • Date
    • Thread