mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-02-26 22:45:13 -05:00
commit
85a68eb017
2 changed files with 10 additions and 6 deletions
|
@ -284,7 +284,9 @@ NSMutableDictionary *soundtimers;
|
|||
if (sounds[soundName] == nil) return;
|
||||
NSString *callback = [NSString stringWithFormat:@"iOS.soundDone('%@');", soundName];
|
||||
UIWebView *webview = [ViewController webview];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[webview stringByEvaluatingJavaScriptFromString:callback];
|
||||
});
|
||||
}
|
||||
|
||||
+ (NSString *)stopSound :(NSString*)name {
|
||||
|
|
|
@ -19,7 +19,9 @@ NSString *oncomplete;
|
|||
|
||||
+ (NSString *) hideSplash :(NSString *)body{
|
||||
UIImageView* splashScreen = [ViewController splashScreen];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[splashScreen removeFromSuperview];
|
||||
});
|
||||
return @"1";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue