UIWindowScene *scene = [UIApplication sharedApplication].openSessions.allObjects.lastObject.scene;
((SceneDelegate *)scene.delegate).window.rootViewController = [LoginViewController new];
如果SceneDelegate不識別的話,記得import "SceneDelegate.h"
UIWindowScene *scene = [UIApplication sharedApplication].openSessions.allObjects.lastObject.scene;
((SceneDelegate *)scene.delegate).window.rootViewController = [LoginViewController new];
如果SceneDelegate不識別的話,記得import "SceneDelegate.h"