Scroll View Images Description
I have a ScrollViewer containing a gallery of images and need to add the function of "pop up" with the description of each image, ie whe开发者_如何转开发n the function will receive the ScrollViewer singletap displays information about this specific picture, anyone have any idea how to do this. Thank you.
I would put a UILabel
(properbly with black, semi transparent background and white Text) above the UIScrollView
. When it is taped (see how you detect taps here) you could fill the UILabel
with the current image's description and make it visible or fade it in. Once the scrollview stars scrolling again (use scrollViewWillBeginDragging:
from the UIScrollViews
delegate) you can hide the Label again.
精彩评论