Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> TableViewCell
  2. {
  3. let cell = tableView.dequeueReusableCellWithIdentifier("CellidQ", forIndexPath: indexPath) as! TableViewCell
  4. var quest = quests[indexPath.row]
  5. cell.questTextView.text=quest.text
  6. cell.tag=indexPath.row
  7. cell.delegate=self
  8. cell.questTextView.editable=false
  9. cell.questTextView.userInteractionEnabled=false
  10. cell.questTextView.delegate=self
  11. cell.questTextView.tag=indexPath.row
  12. return cell
  13. }
  14.  
  15. let cell = yourcellclassname(style: UITableViewCellStyle.Default, reuseIdentifier: "Cell")
  16.  
  17. cell.textLabel?.text = cellContent[indexPath.row]
  18. cell.imageview?.image = cellContent[indexPath.row]
  19.  
  20. hope it helps.!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement