iOS、iPhone - 弹出式图像查看器
我正在寻找一种方法来复制 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技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我还没有见过那些应用程序...但我的猜测是您只需使用 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)/
它就像任何其他 UIViewController。实现一个委托(请参阅实用程序模板),就是这样。
It's like any other UIViewController. Implement a delegate (see Utility template), and that's it.
制作一个自定义 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.