如何在 UIScrollView 中使用捏合手势识别器?
我在 UIScrollView 上有几个项目文本字段、标签和图像。有没有办法使用捏合手势放大屏幕以更仔细地查看滚动视图上的项目?
I have several items textfields, labels, and images on a UIScrollView. Is there a way to use the pinch Gesture to enlarge the screen to get a closer look of the items on the scrollview?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先尝试使用滚动视图的委托函数,如下所示:
我的假设是您将所有 UI 元素放在一个视图中,并且必须在此函数中返回该视图。
To start off try using the delegate function of the scroll view which is given below:
My assumption is that you have all the UI elements in one view and that view has to be returned in this function.