简体   繁体   English

适用于iPad和iPhone的UIPopoverController替代产品

[英]UIPopoverController alternative both for iPad and iPhone

I want to have some universal ui component which I can use for both iPad and iPhone. 我希望有一些通用的ui组件,可同时用于iPad和iPhone。 Since popovers are available only for iPad I want to have a single component which will run on both devices. 由于弹出式窗口仅适用于iPad,因此我希望有一个可以在两种设备上运行的组件。 I don't want to have to write separate modules since this is not a major feature anyways. 我不想编写单独的模块,因为这毕竟不是主要功能。 What I need is to present a web view in some sort of popup which does not cover the whole screen. 我需要以某种形式的弹出窗口呈现Web视图,该弹出窗口不会覆盖整个屏幕。 Is there a component in the framework I can use? 我可以使用框架中的组件吗?
I need to run it on iOS 6 and 7. 我需要在iOS 6和7上运行它。

You can use this. 您可以使用它。

FPPopover provides an alternative to the native iOS UIPopoverController, adding support for iPhone and additional opportunities to customize the look and feel of the popovers. FPPopover提供了本机iOS UIPopoverController的替代方案,增加了对iPhone的支持以及自定义弹出窗口外观的其他机会。

https://github.com/50pixels/FPPopover https://github.com/50pixels/FPPopover

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM