NSArray *array =[[[UIApplication sharedApplication] connectedScenes] allObjects];
UIWindowScene *windowScene = (UIWindowScene *)array[0];
SceneDelegate *delegate =(SceneDelegate *)windowScene.delegate;
NSArray *array =[[[UIApplication sharedApplication] connectedScenes] allObjects];
UIWindowScene *windowScene = (UIWindowScene *)array[0];
SceneDelegate *delegate =(SceneDelegate *)windowScene.delegate;
本文标题:ios13 怎么获取SceneDelegate
本文链接:https://www.haomeiwen.com/subject/csrzmhtx.html
网友评论