JavaScript in iOS that responses to programmatic calls -


i'm using processing hype framework create visualizations , want put in ios app. i've searched around bit , looks easiest solution export processing js , put in uiwebview.

the part i'm unsure need able send input js adjust visualization on steady timer. first thought can set key listeners in js, , programmatically simulate key press within app. possible? there other solutions?

not javascript expert know can run js in uiwebview. eg:

// nsstring *innerhtml = [self.mywebview stringbyevaluatingjavascriptfromstring:@"document.documentelement.innerhtml"];  // set [self.mywebview stringbyevaluatingjavascriptfromstring:@"document.documentelement.innerhtml"]; 

i hope guides in right direction.

source


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -