I'm trying to write some bridge between Javascript, which is called from UIWebView, and Objective-C calls. I find a lot of quiestions like that, and all of them saying that I should catch Javascript calls in
-(BOOL) webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
ok, it's easy (and only?) way to do this, so I'm looking to that direction.
All answers to these quiestions say "parse url from webView and then with help of if-else send a message to Objective-C class". I have more than 10 functions in Javascript, so I don't want to parse them manually (these functions will have arrays of js objects as parameters and so on).
So the question is: are there any light libraries or opensource projects to convert/unconvert obj-C selectors and parameters into/from strings? (I am not so familiar with Javascript, but I think that do the same thing in much easy than in obj-C, so the main question is about obj-C)
PS I've found QuickConnectOC library, but I'm not sure if I can use it PPS I think it is not difficult to write my own parser... but I don't want to reinvent wheel