i'm very new to Xcode and developing in general (my first app) and I'm wondering how I can align the popovers in swift to the button as you can see
When you create the popover, you also state the view that the arrow points to and the bounds in relation to that view that the arrow should point to. So if n
is the neon view, then n.bounds
is the position within the neon view to which the arrow should point, if you want to point right at it. If you want to point above it as in the picture, then adjust that value before returning it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.