2017-08-03 44 views

回答

0

我使用了一个名为MSAlertController库要做到这一点,我使用他们的MSAlertControllerEmbedComponent然后传递的tableview英寸

成功地嵌入在我的提醒表

你可以在这里得到它:https://github.com/MilitiaSoftworks/MSAlertController

这是一个相当新的图书馆所以很遗憾他们没有任何的CocoaPods的支持和他们的文档仍然是一个在制品,但我可以用你的实现帮助,如果你需要它。但我发现它非常简单。

0

我以前没有使用过SDCAlertView,但是您可以使用vc.modalPresentationStyle = .overCurrentContext来呈现一个普通的ViewController,并使用vc.modalPresentationStyle = .overCurrentContext这会呈现您的VC,但是前一个VC仍然在后台。

从外观上看,它看起来很像一个警报,但您完全可以控制它的外观。

let vc = ViewController(nibName: "ViewController", bundle: Bundle.main) as ViewController 
vc.dataSource = datasourceWith(***.****ToDownload()) 
vc.modalPresentationStyle = .overCurrentContext 
相关问题