Transparent background for modally presented viewcontroller

前端 未结 5 1359
再見小時候
再見小時候 2020-11-29 03:04

I am using Parse & ParseUI. I want my PFLoginViewController subclass to have a transparent background. In the future, I want to lay a blurred view over the background.

5条回答
  •  死守一世寂寞
    2020-11-29 03:51

    In case anyone is still struggling with a transparent background I found this solution some time ago - I can't remember where but still works fine with the latest Xcode & Swift.

    ContactListViewController2: UIViewController, UITableViewDelegate, UITableViewDataSource,UIViewControllerTransitioningDelegate {
    
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    
        self.modalPresentationStyle = .custom
        self.transitioningDelegate = self
    }
    

提交回复
热议问题