Function to swap pointers in Objective-C -


controller2; Controller 2 = Controller 1; Controller 1 = swap; }

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; }  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -