Can you post a (cropped) screenshot? > On Jun 1, 2016, at 1:39 PM, Rick Mann <rm...@latencyzero.com> 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 the specified > item. Alternatively, you may specify the anchor location for the popover > using the sourceView and sourceRect properties." > > It's actually not straightforward to get the rect of a UIBarButtonItem (I > don't know why they didn't make that a UIView). So AFAICT, iOS is incorrectly > computing the source rect. > >> On Jun 1, 2016, at 04:14 , Logan Cautrell <logancautr...@ftml.net> wrote: >> >> 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 <rm...@latencyzero.com> wrote: >>> >>> 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 >>> rm...@latencyzero.com >>> >>> >>> >>> _______________________________________________ >>> >>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >>> >>> 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: >>> https://lists.apple.com/mailman/options/cocoa-dev/logancautrell%40ftml.net >>> >>> This email sent to logancautr...@ftml.net >> > > > -- > Rick Mann > rm...@latencyzero.com <mailto:rm...@latencyzero.com> > > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > 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: > https://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com > > This email sent to david.dun...@apple.com
-- David Duncan _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com