I want to pass an object to my rear UIViewController
when I reveal it. I set up the SWRevealViewController
in the interface builder. I tried passing it in prepareForSegue
for segue id "sw_rear" however I noticed that this isn't even called when the controller is revealed. Could anyone give me a pointer on how to do this please?
Asked
Active
Viewed 764 times
0

Kex
- 8,023
- 9
- 56
- 129
-
How did you figure it out? And which segue identifier did you use to send the data? I'm running into the same problem – Ali_bean Nov 08 '15 at 12:45
1 Answers
3
I had the same issue before. prepareForSegue is not called from controllerA as it does not own controllerB. You can access to your rear just writting: self.revealViewController.rearViewController from any instance that inherits from SWRevealViewController.

Javier Flores Font
- 2,075
- 15
- 13
-
Hi, i have the same issue, so which segue identifier did you use? If i use "sw_rear" it doesn't even fire – Ali_bean Nov 08 '15 at 12:51