Linus G. Linus G. - 1 year ago 102
Swift Question

Open AppStore through button

Could you guys help me to translate the following code into swift?

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://"]];

(or do I have to take this link: itms:// ?)

Thanks in advance ;)

Answer Source

Here. But I highly suggest you learn the basics of Swift!

UIApplication.sharedApplication().openURL(NSURL(string: "itms://")!)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download