We have an app that basically parsers some web pages. The thing is the structure of the web page changes sometimes so we need to issue an update (wait for apple’s approval of course). We would like to have the ability to have some kind of a “script logic” on our server that can be sent to the app whenever needed. JavaScript code is possible, but I don’t want to have a UIWebView just for parsing some strings. Is there some kind of alternative?
Thanks
If you are mainly looking for a way to parse strings, one possibility is using regular expressions to do the job and thus provide the definition for those regex in a text or xml file that you can download. This is not a full scripted solution, like one where you download the code and execute it, but it should work equally well. I suppose this should be also completely ok with Apple terms.
There are several frameworks for iOS that offer regex support: RegExKit, AGRegEx, and in iOS 4 you have also
NSRegularExpression.