Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
- let cell = tableView.dequeueReusableCell(withIdentifier: "MngList") as! MngTableViewCell
- let Datum = LeaveRequestDivision![indexPath.row]
- if UIImage(named:("(Datum.Person_No)")) != nil{
- cell.Img.image = UIImage(named:("(Datum.Person_No)?")) // <-- here is I'm getting the error
- }else {
- cell.Img.image = UIImage(named:("no_pic"))
- }
- cell.Name.text = "Abraham" // <-- even here too I'm getting the error
- cell.leave_remain.text = Datum.Division
- return cell
- }
Add Comment
Please, Sign In to add comment