change ios open method
This commit is contained in:
parent
30d6546611
commit
838d60e9a2
@ -367,7 +367,11 @@ void Application::loadKeyLocal(const std::string &account, std::string *outItem)
|
||||
void Application::toWallet(const std::string &url) {
|
||||
UIApplication *app = [UIApplication sharedApplication];
|
||||
NSString *uri = [NSString stringWithCString:url.c_str() encoding:NSUTF8StringEncoding];
|
||||
[app openURL:[NSURL URLWithString:uri]];
|
||||
[app openURL:[NSURL URLWithString:uri] options:@{} completionHandler:^(BOOL success) {
|
||||
if (success) {
|
||||
NSLog(@"Opened url");
|
||||
}
|
||||
}];
|
||||
}
|
||||
|
||||
bool Application::applicationDidFinishLaunching()
|
||||
|
Loading…
x
Reference in New Issue
Block a user