mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-09-27 12:59:00 +00:00
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 = [emulatorClass new];
|
||||||
sharedEmulator.rootViewController = nil;
|
sharedEmulator.rootViewController = nil;
|
||||||
sharedEmulator.showAlert = ^(NSString *title, NSString *message) {
|
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.dataPath = [NSBundle mainBundle].resourcePath;
|
||||||
sharedEmulator.screenLayer = fullScreenView.layer;
|
sharedEmulator.screenLayer = fullScreenView.layer;
|
||||||
|
Loading…
Reference in New Issue
Block a user