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
Post a Comment