Swift获取到AppDelegate
// 拿到 AppDelegate // 拿到 AppDelegate OC // 拿到 AppDelegate AppDelegate *tempAppDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; XNViewController *vc = [[XNViewController alloc]init]; tempAppDelegate.window.rootViewController = vc; (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |