Re: Popover arrow point never properly aligned

2016-06-01 Thread Rick Mann
> On Jun 1, 2016, at 15:02 , Eric Dolecki wrote: > > Did you ever move that share button? No, it's just part of the Storyboard. I do add and remove it (and another button) depending on some app state, using setRightBarButtonItems(), but even when that code isn't called, and the buttons are j

Re: Popover arrow point never properly aligned

2016-06-01 Thread Eric Dolecki
Did you ever move that share button? On Wed, Jun 1, 2016 at 2:33 PM -0700, "Rick Mann" wrote: > On Jun 1, 2016, at 13:49 , David Duncan wrote: > > Can you post a (cropped) screenshot? http://cl.ly/091f0h1w361P -- Rick Mann rm...@latencyzero.com ___

Re: Popover arrow point never properly aligned

2016-06-01 Thread Rick Mann
> On Jun 1, 2016, at 13:49 , David Duncan wrote: > > Can you post a (cropped) screenshot? http://cl.ly/091f0h1w361P -- Rick Mann rm...@latencyzero.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: Popover arrow point never properly aligned

2016-06-01 Thread David Duncan
Can you post a (cropped) screenshot? > On Jun 1, 2016, at 1:39 PM, Rick Mann wrote: > > According to the docs, specifying barButtonItem is sufficient: > > "Assign a value to this property to anchor the popover to the specified bar > button item. When presented, the popover’s arrow points to th

Re: Popover arrow point never properly aligned

2016-06-01 Thread Rick Mann
According to the docs, specifying barButtonItem is sufficient: "Assign a value to this property to anchor the popover to the specified bar button item. When presented, the popover’s arrow points to the specified item. Alternatively, you may specify the anchor location for the popover using the

Re: Popover arrow point never properly aligned

2016-06-01 Thread Logan Cautrell
I would check the sourceRect property on UIPopoverPresentationController. If you want precise control over the positioning, then you may need a custom view in a UIBarButton. You can calculate the position and update the sourceRect accordingly. -logan > On May 26, 2016, at 7:08 PM, Rick Mann

Popover arrow point never properly aligned

2016-05-26 Thread Rick Mann
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 = Model