iOS、iPhone - 弹出式图像查看器

发布于 2024-12-05 08:26:51 字数 95 浏览 0 评论 0原文

我正在寻找一种方法来复制 USAToday 应用程序和其他应用程序创建的弹出图像(图像,有时带有文本和关闭的 X)?

史蒂夫

I am looking for a way to duplicate the image pop up that the USAToday app and others have created (an image, sometimes with text, and a close X)?

steve

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

巴黎夜雨 2024-12-12 08:26:51

我还没有见过那些应用程序...但我的猜测是您只需使用 UIView ...并将其作为子视图添加到您希望子视图显示的当前视图(弹出窗口)/

I have not seen those apps... But my guess is that you just use a UIView ... and add it as subview to whatever the current view you want the subview to show up (popup)/

白龙吟 2024-12-12 08:26:51

它就像任何其他 UIViewController。实现一个委托(请参阅实用程序模板),就是这样。

It's like any other UIViewController. Implement a delegate (see Utility template), and that's it.

北方。的韩爷 2024-12-12 08:26:51

制作一个自定义 UIViewController 并阅读弹出窗口。它非常简单。

如果您使用的是 iPhone,只需添加一个新的自定义子视图。

Make a custom UIViewController and read up on popovers. Its very straight forward.

If you are on an iPhone just add a new custom subview.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文