首页 > UITableViewCell 下转至 UIImageView 出错

UITableViewCell 下转至 UIImageView 出错

小弟用的是swift开发iOS,在尝试从UITableView下转至UIImageView的时候死活都转不了,麻烦大家看一下,谢谢。

func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int{

    
    return 20
}

func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    
    let cell = self.tableView.dequeueReusableCellWithIdentifier("Cell")!
    
    let image123 = cell.viewWithTag(1)! as! UIImageView
    
    return cell
    
    
}

当然viewcontroller已经遵循了UITableViewDelegate,而且在storyboard处也把tableview和viewcontroller建立了datasource和delegate
【热门文章】
【热门文章】