This time, we will introduce the function to transition from the application under development to the developer's SNS and homepage.
ViewController.swift
// url =Specify the URL of the site you want to transition to as a String type
let url = NSURL(string: "")
if UIApplication.shared.canOpenURL(url! as URL) {
UIApplication.shared.open(url! as URL, options: [:], completionHandler: nil)
}
This is OK! If you tap the button or Cell of TableView to make a transition, it will be simple and easy for the user to understand intuitively.
Recommended Posts