Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to dynamically modify HTML with Xcode?

I'm trying to make an iPhone app for a uni project.

The app should let the user change via touch some content of a web (text of labels, colour and font of the text, etc). The goal is to let the user play with different designs without coding.

I've thought of parsing a web, and add some functions to make the elements touchable, and then "reload" the modified HTML.

I'd like to know if this is "possible", I've found some parsers that work on Xcode, and adding functions is just coding with the parsed info... but can I reload that parsed and modified html from a variable (and continue working with it) instead of the original web HTML?

The other way is not to parse and modify the content with JQuery, but I don't know if it can be linked to Xcode since it works directly on web...

I'm a bit lost because i've almost always worked on desktop apps, so any help is welcome :)

like image 982
Sylphos Avatar asked Apr 21 '26 02:04

Sylphos


1 Answers

Load the web page once and modify it via JavaScript

   [self.myWebView stringByEvaluatingJavaScriptFromString:myJavaScript];
like image 157
Niels Castle Avatar answered Apr 22 '26 17:04

Niels Castle



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!