Advertisement
Guest User

Untitled

a guest
Jul 29th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  2. someArray.append(indexPath)
  3. }
  4.  
  5. for indices in self.someArray {
  6. if indices == indexPath {
  7. cell.button.setImage(UIImage(named: "selected"), forState: UIControlState.Normal)
  8. } else {
  9. cell.button.setImage(UIImage(named: "unselected"), forState: UIControlState.Normal)
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement