import
UIKit
class
ViewController
:
UIViewController
{
override
func
viewDidLoad() {
super
.viewDidLoad()
}
@IBAction
click(sender:
AnyObject
) {
let
urlString =
"taobao://item.taobao.com/item.htm?id=22671596473"
url =
NSURL
(string: urlString)
UIApplication
.sharedApplication().openURL(url!)
didReceiveMemoryWarning() {
.didReceiveMemoryWarning()
urlStr =
"baidumap://map/geocoder?address=北京市海淀区上地信息路9号奎科科技大厦"
encodeUrlString = urlStr.stringByAddingPercentEncodingWithAllowedCharacters(
.
URLQueryAllowedCharacterSet
())!
(string: encodeUrlString)