开发者

Scroll View Images Description

开发者 https://www.devze.com 2023-04-12 00:40 出处:网络
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

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

精彩评论

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

关注公众号