当我点击tableview单元格时,我想要查看表格视图的详细信息。但首先是虚拟屏幕,之后我的数据正在加载。我不想看虚拟屏幕。我该如何避免虚拟屏幕?
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
let indexPath = tableView.indexPathForSelectedRow!
let campaigns = self.campaigns[indexPath.row] as Campaigns
altResim = campaigns.AltResimUrl
detailDesc = campaigns.Description
reward = campaigns.Bonus
titleofDetail = campaigns.Title
subtitleofDetail = campaigns.Subtitle
performSegueWithIdentifier("showDetailSegue", sender: self)
}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
/* if segue.identifier == containerSegueName {
containerViewController = segue.destinationViewController as? ContainerVC
}
else*/
if segue.identifier == "showDetailSegue" {
let detailVC : ProductDetailVC = segue.destinationViewController as! ProductDetailVC
detailVC.receivedAltResim = altResim
detailVC.receivedDetailDesc = detailDesc
detailVC.recirevedReward = reward
detailVC.recievedTitleofDetail = titleofDetail
detailVC.recievedSubtitleofDetail = subtitleofDetail
}
}
这是我选择单元格并使用segue传输数据的地方。
relative_urls : false,