ios - multiple segues in uitableview -


i have uitableview 2 custom cells (messages, , notifications). want apply segue viewcontroller when user press message cell, nothing when press notification cell. how didselectrowatindexpath method? answers here suggested using indexpath.row checking cell clicked these dynamic cells json don't know position in tableview or how many they.

using swift , xcode 7.3

if cells different types, can determine class type in didselectrowatindexpath

or can add different tag cells. can in storyboard or programatically when create cell.

then in didselectrowatindexpath check tag selected row , know type of cell is.