swift 跳轉網頁寫法

來源:互聯網
上載者:User

var alert : UIAlertView = UIAlertView.init(title: "公安出入境網上辦事平台", message: "目前您可以使用網頁版進行出入境業務預約與查詢,是否進入公安出入境辦事平台。", delegate: nil, cancelButtonTitle: "取消", otherButtonTitles: "確定")

                

                alert.showAlertViewWithCompleteBlock({ (buttonIndex : NSInteger) in

                    if (buttonIndex == 1) {

                        

                        UIApplication.sharedApplication().openURL(NSURL.init(string: "http://219.136.255.192/ywbl/crjzjyysl/yysq/?type=sq&province=41")!)

                        

                        

                        

                    }

                })

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.