As far as i remember Apple strictly forbids this kind of behavior in the code. But they are always changing their guidelines maybe this is also changed, need to look again to their guidelines.
APIs and Functionality 3.3.1 Applications may only use Documented APIs in the manner prescribed by Apple and must not use or call any private APIs. 3.3.2 An Application may not download or install executable code. Interpreted code may only be used in an Application if all scripts, code and interpreters are packaged in the Application and not downloaded. The only exception to the foregoing is scripts and code downloaded and run by Apple's built in WebKit framework or JavascriptCore, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.
Comments
But they are always changing their guidelines maybe this is also changed, need to look again to their guidelines.
APIs and Functionality
3.3.1
Applications may only use Documented APIs in the manner
prescribed by
Apple and must not use or call any private APIs.
3.3.2
An Application may not download or install executable code. Interpreted
code may only be used in an Application if all scripts, code and interpreters are
packaged in the Application and not
downloaded. The only exception to the
foregoing is scripts and code downloaded and run by Apple's
built in WebKit framework or JavascriptCore, provided that such scripts and code do not change the primary purpose of the Application by providing features or functionality that are inconsistent with the intended and advertised purpose of the Application as submitted to the App Store.
Likes: talis
But you can do that using loadstring or dofile functions in lua