学Swift挣美金

Swift代码库之如何读区app本地图片和在tableview中

2019-06-23  本文已影响2人  iCloudEnd

Swift代码库之如何读区app本地图片和在tableview中显示

   func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 5
    }
    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "WordCell", for: indexPath) as! WordCell
        
        cell.wName.text="sdfjkff "
        cell.wImage.image=UIImage(imageLiteralResourceName:"0001.png")
        return cell
    }
上一篇 下一篇

猜你喜欢

热点阅读