ios - iOS UITextView with html contents, tap on image and zoom
问题描述
I’m developing a Swift iOS application to display simple HTML content (text and images) inside a UITextView (with attributedString of course). Text and images (plain img tags with remote images) are shown perfectly. I’d like at this point, to let the user tap on the images and display them full screen and full size on a new view controller.
Any help would be appreciated. I can intercept tap on images, following some old SO posts, but I can’t figure out how to “get” the image to pass to the new view controller.
Thanks.
解决方案
推荐阅读
- design-patterns - 是否可以在没有任何硬编码部分的情况下制作整个程序?
- mysql - 如何使用join而不是使用mysql选择?
- android - ReactNative unlink 不适用于 react-native-push-notification?
- android - 如何在 iOS 中使用 EXPO/react-native 实现 RTL
- ms-access - Delphi 无法连接到 Access 2019
- azure-devops - BizTalk Server 应用程序项目无法使用 .NET 4.7.2 进行编译
- android - 如何在 JNI andriod 项目的 AAR 中使用 .so 文件?
- javascript - 避免在“then”和“catch”中重复相同的代码
- ios - 状态栏左右两侧颜色不同
- python - 使用 CNN 通过单个池化层进行特征提取是一种稳健的方法吗?