Je veux l'action perfrom sur tableViewCell
le problème est que - si je clique sur la cellule (quand taille (375 * 667) il doit effectuer une action, Et si je clique sur la cellule (quand taille (375 * 300) doit effectuer une autre action
Réponses:
2 pour la réponse № 1Il suffit de vérifier les dimensions ...
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
if (tableView.cellForRowAtIndexPath(indexPath)?.frame.height == 667) {
//do something
} else if (tableView.cellForRowAtIndexPath(indexPath)?.frame.height == 300) {
//do something else
}
}