override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
let row = indexPath.row
println(row)
let section = indexPath.section
println(section)
let vc : AnyObject! = self.storyboard?.instantiateViewControllerWithIdentifier("Smokes")
self.showViewController(vc as! UIViewController, sender: vc)
if (section == 0 && row == 0){
let requestURL = NSURL(string: URLDustCTRampFromALong)
let request = NSURLRequest(URL: requestURL!)
WebView.loadRequest(request)
}
点击桌子后崩溃了。我想创建一个表,当你点击一行时,它会在同一个WebView上打开,但是使用不同的URL。有什么想法吗?
P.S。我是初学者