Your screen shot displays a popover . Use a UIPopoverController and you'll get the triangle automatically.
Sometimes solutions are simpler then expected. Just draw all three triangles in storyboard. Then in your UIController you use the hidden
flag to show or hide the triangle.
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.