开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜