iOS tooltip image

2019-09-06 10:47发布

问题:

I need to implement tooltip in my iOS App. I would like to use CMPopTipView but with plazn text I would like to have some image also and detect click on this tooltip and perform some action after that. Is this is not possible with CMPopTipView is there any way to do that?

回答1:

If you write app for iPad you can use UIPopoverController with custom background class via property popoverBackgroundClass to make it looks like tooltip, and also any view as content for popover.

UIPopoverController Class Reference



标签: ios tooltip