سؤال

My project contains two designs for cell in a uitableview and show it correctly, but the problem is when I select a row for pass to detailsviewcontroller with a segue...

How can I detect the identifier of the selected row? Depends on the selected row... In didselectrowatindexpath needs redirect to other detailsviewcontroller.

Thanks for all ;)

هل كانت مفيدة؟

المحلول

If you have access to the selected cell, you have access to it's "reuseIdentifier" (the documentation for which I've linked for you here).

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top