如何从UIViewController中的数据传递到SWRevealViewController

问题描述:

我想从AuthentificationController数据(登录/密码)传递给其与自定义赛格瑞“sw_front” 一个SWRevealViewController HomeController的存在AuthentificationController和HomeController的 之间没有关系我应该怎么做才能传递数据?如何从UIViewController中的数据传递到SWRevealViewController

如何使用SWRevealViewController

let storyboard = UIStoryboard(name: "Main", bundle: nil) 
    let secondView = storyboard.instantiateViewController(withIdentifier: "swreveal") as! SWRevealViewController 
// passing the data here 
    self.present(secondView, animated: false, completion: nil) 
+1

欢迎来到SO。请参阅[如何提问](https://*.com/help/how-to-ask)。 – bated

您可以将数据传递给SWRevealViewController再到HomeController的我将数据发送到HomeController的。

+0

SWRevealViewController没有Swift类,他有.h和.m类:/ – Kimblos

+0

SWRevealViewController是一个你创建的类还是来自某个库? – vsujan