当前位置: 动力学知识库 > 问答 > 编程问答 >

xcode - 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 when 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.

分享给朋友:
您可能感兴趣的文章:
随机阅读: