martes, 4 de octubre de 2016

iOS: Present view controller modally over current context

Swift

let storyboard: UIStoryboard = UIStoryboard(name: "Main", bundle: nil)
            let vc: UIViewController = storyboard.instantiateViewController(withIdentifier: "AddPaymentViewController")
            vc.modalPresentationStyle = UIModalPresentationStyle.overFullScreen;
            vc.modalTransitionStyle = UIModalTransitionStyle.coverVertical;
           
           
            self.present(vc, animated: true, completion: nil)

No hay comentarios:

Publicar un comentario