ios - How to ensure didSelectRowAtIndexPath opens correct View -


i know how send user new cell after select cell if order of cells change because retrieving data parse each new cell, row number changes.

how ensure user sent correct page when select cell? i'm using know there's got better solution hardcoding every possible option..

any advice?

func tableview(tableview: uitableview, didselectrowatindexpath indexpath: nsindexpath) {     if indexpath.section == 0 && indexpath.row == 1 {         self.performseguewithidentifier("tosettingspage", sender: self)     } } 

for understanding of questions, suggest use nsmutabledictionary store user info data, , on didselectrowatindexpath function, use indexpath find correct user info.


Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -