Thursday, October 4, 2012

Why does prepareForSegue occur before didSelectRowAtIndexPath

The content was copied from:
http://stackoverflow.com/questions/10376967/in-ios-app-why-does-prepareforsegue-occur-before-didselectrowatindexpath

Do you have your detail segue attached to the table view cell? Instead, try dragging it between the two view controllers (the one containing the table and the one where you want it to go).

Then perform it manually when tableView:accessoryButtonTappedForRowWithIndexPath:.



No comments:

Post a Comment