Function to swap pointers in Objective-C -
It seems that this does not work because I'm not running references. how to do this?
You want to change the pointers in the points you want to change:
- (zero) Swap Controller: (MyViewController **) with Controller 1: (MyViewController **) Controller 2 {MyViewController * swap = * controller2; * Controller 2 = * Controller 1; * Controller 1 = swap; }