uiimageview - iOS: How to code a Tool Tip when user hovers over a UIView -


i have tool tip show on set of uiimageview when user hovers on it. don't see see methods leverage in uiimageview class.

how can accomplish this?

tool tip support not directly available in ios @ time. can accomplish same effect couple of approaches:

using existing tool tip framework

there open source solutions available solve problem, can pull own project , use , save lot of time, long ensure license compatible apple's policies (many of them are, require credit author somewhere in project source). study code learn technique. example there ampoptip project on github

enter image description here

here's corresponding youtube video:

here similar stackoverflow.com question (there may more):

is possible show tooltip in ios app?

trying code yourself

you'd use long press gesture, see apple's gesture recognizers documentation , perform kind of hit test determine when finger on uiview subview (in case uiimageview) , time entry of it, , how long held in view without moving out or lifted.

at point you'd want overlay uitextview or class contained 1 drew custom border around it, containing tool tip either adding subview on top or near finger placed, or make pop separate uiviewcontroller.


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -