Я хочу показать this Ссылка iTunes на экране iPhone. Должен ли я использовать UIWebView
или что-то еще?Отображение профиля пользователя iTunes в приложении iOS
import UIKit
class MusicViewController: UIViewController {
@IBOutlet var itunesWebView: UIWebView!
override func viewDidLoad() {
super.viewDidLoad()
let url = NSURL (string: "https://geo.itunes.apple.com/us/artist/seka-aleksic/id309535625?mt=1&app=music")
let requestObj = NSURLRequest(URL: url!)
itunesWebView.loadRequest(requestObj)
/* INITIAL SETUP FOR COLOURS & FONTS */
// Change the Navigation Bar Font to Lato
navigationController?.navigationBar.titleTextAttributes =
[NSForegroundColorAttributeName: UIColor.whiteColor(),
NSFontAttributeName: UIFont(name: "Lato-Semibold", size: 20)!]
// Set the Navigation Bar Text Color to White
navigationController!.navigationBar.tintColor = UIColor.whiteColor()
// Set the Background of the Table View
let imageView = UIImageView(frame: self.view.frame)
let image = UIImage(named: "main_menu_background")!
imageView.image = image
self.view.addSubview(imageView)
self.view.sendSubviewToBack(imageView)
/* INITIAL SETUP FOR COLOURS & FONTS */
}
}
Любая помощь будет высоко оценен