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.
Comments
Post a Comment