maybe this will help:
JavaScript is a fairly popular language, and you can run JS in C object code check Integrate JavaScript in your own wwdc 2013 session applications
so maybe you can find a solution in JS and use it in objc source code.
source share