2017-08-03 74 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 
相關問題