Is there a way to pass a program a string and get it to execute the code. For instance, could I have an NSString with this in it:
int a =0;
NSLog(@”a = %i”, a);
.. and it would execute the code.
The reason for my question is that I’d like to be able to practice coding on my iPad. I was hoping there would be a website wher you could enter objective-C and it would execute, within the browser, but I can’t find such a site. My other option is some sort of screen sharing solution with my main mac, but that would be no good in low bandwidth situations.
Objective-C is a compiled language, which means you need to compile the code to execute it (the good thing is that you compile it where you have plenty of resources and not on iPad).
So, basically, the answer is no.