2017-08-16 72 views
0

嗨我有一個簡單的Tableview與我的第一頁上的自定義Xib,但輔助觸摸變得laggy當tableview被填充,其他頁面沒有tableview,並且tableview本身並沒有laggy滾動和它只有5行輔助觸摸Laggy與桌面視圖

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { 

    print("tableview Called") 
    let cell = tableView.dequeueReusableCell(withIdentifier: "TransactionsListCell") as!TransactionsListCell 
    cell.tag = indexPath.row 
    let cellClicked = UITapGestureRecognizer(target: self, action: #selector (self.CellClicked(sender:))) 
    cell.addGestureRecognizer(cellClicked) 
    return cell 
} 

,我已經註冊了的tableview筆尖在viewDidLoad中象下面這樣:

TransactionTable.register(UINib(nibName:"TransactionsListCell", bundle: nil), forCellReuseIdentifier:"TransactionsListCell") 

和所述細胞是含有一個圖像和4個標籤,甚至我如此簡單嘗試不配置單元格(不加載任何圖像和文本)但沒有結果。 感謝您的幫助

+0

@AdityaSrivastava這不是問題,我甚至嘗試刪除該行 – Mahan

回答

0

我發現問題是由我用來創建帶圓圈的UIImageViews的圖書館引起的,名爲「SwiftyAvatar」,刪除它解決了問題。