use watchkit alert
This commit is contained in:
parent
e2dc87631d
commit
c2f2622cb5
|
@ -133,7 +133,8 @@ static NSObject<Emulator> *sharedEmulator = nil;
|
|||
sharedEmulator = [emulatorClass new];
|
||||
sharedEmulator.rootViewController = nil;
|
||||
sharedEmulator.showAlert = ^(NSString *title, NSString *message) {
|
||||
NSLog(@"Alert: %@ - %@", title, message);
|
||||
[self presentAlertControllerWithTitle:title message:message preferredStyle:WKAlertControllerStyleAlert actions:@[
|
||||
[WKAlertAction actionWithTitle:@"OK" style:WKAlertActionStyleDefault handler:^{}]]];
|
||||
};
|
||||
sharedEmulator.dataPath = [NSBundle mainBundle].resourcePath;
|
||||
sharedEmulator.screenLayer = fullScreenView.layer;
|
||||
|
|
Loading…
Reference in New Issue