We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
修改代码延迟加载
+ (void)addDLGMemUIView:(id<DLGMemUIViewDelegate>)delegate { UIApplication *application = [UIApplication sharedApplication]; if (application) { // 这里延迟5秒左右 NSUInteger delaySecond = 5; dispatch_time_t delayTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delaySecond * NSEC_PER_SEC)); dispatch_after(delayTime, dispatch_get_main_queue(), ^{ [DLGMemUI addDLGMemUIViewToWindow:application.keyWindow withDelegate:delegate]; }); return; } // 这里再延迟7秒左右 dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(7 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [DLGMemUI addDLGMemUIView:delegate]; }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
修改代码延迟加载
The text was updated successfully, but these errors were encountered: