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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -