title: How to convert String to code in Objective-C
body: <p>I need to ask, how can I convert a string containing a piece of code to actual runnable code: </p>
  
  <pre><code>  int x = 7;
    int y = 9;
    NSString *myCode = @"if(x &gt; y) return x; else return y;";
  </code></pre>
  
  <p>I need to be able to run myCode as actual Objective C code. The example given is a dummy example just to illustrate the idea.</p>