Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取window太繁琐 #20

Open
kysonzhu opened this issue Mar 12, 2018 · 2 comments
Open

获取window太繁琐 #20

kysonzhu opened this issue Mar 12, 2018 · 2 comments

Comments

@kysonzhu
Copy link

虽然说JSDecoupledAppDelegate解耦了AppDelegate,但获取window只能通过[JSDecoupledAppDelegate sharedAppDelegate].appStateDelegate.window获取,其实增加了耦合性

@JaviSoto
Copy link
Owner

Sorry, I don't speak Chinese. I translated your message using Google translate, I hope you can do the same with mine :)

Yeah, that is unfortunate, but you rarely should reach out to get the window that way. You can always get it via a view controller or a view (UIView.window).

@ywqqqqq
Copy link

ywqqqqq commented Oct 14, 2019

initial your window with [[UIApplication sharedApplication].delegate setWindow:window];` Then you could easily get your window with normal method.
@JaviSoto @kysonzhu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants