0

Is it only view controllers (i.e.: do you typically only pass self)? Or could I pass the indexPath of a cell, or the UIButton that is causing the segue?

Doug Smith
  • 28,841
  • 56
  • 200
  • 373

1 Answers1

0

If you call this method programatically, (which is what you are doing), sender can have any OBJECT which will be used for informational purposes only. As the documentation states it:

sender
The object that you want to use to initiate the segue. This object is made available for informational purposes during the actual segue.

Which is found here https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIViewController_Class/#//apple_ref/occ/instm/UIViewController/performSegueWithIdentifier:sender:

Pochi
  • 13,362
  • 2
  • 60
  • 102