I'm developing a cocoa app runs on macOS(not iOS). And I want to open an Advertisement Web Page while users click the 'Show Advertisement' button.
My Question is: how to open a url in the system's default browser(like safari) through swift code in my app.
And there must be a way to call local browser through swift code, because the in app 'WeChat', when we click a link in that app, the system will open a safari browser and show the content of the link. My question is: how?
Thanks for your help, Best Regards.
Yours,
Alex.Zhang
My Question is: how to open a url in the system's default browser(like safari) through swift code in my app.
And there must be a way to call local browser through swift code, because the in app 'WeChat', when we click a link in that app, the system will open a safari browser and show the content of the link. My question is: how?
Thanks for your help, Best Regards.
Yours,
Alex.Zhang