If I have a webbased app, wrapped in a UIWebView, can I execute Objective C code form within the HTML code?
I hope I don't get downvoted to oblivion for asking this but I am not able to find anything online.
Doesn't C code need to be compiled? I don't think it can be executed within the HTML
Its impossible.
but if you trying to create HTML5 application its possible using webview; http://conecode.com/news/2011/05/ios-tutorial-creating-a-web-view-uiwebview/
in this case you need create your application with Javascript and HTML. I recoment you to download jquery mobile and bootstrap mobile too.
For a complex app use Phonegap: http://phonegap.com/
I'm assuming you mean that you have an iOS app that contains a UIWebView, and you want your embedded javascript to call ObjC. If so, see: https://developer.apple.com/library/mac/documentation/AppleApplications/Conceptual/SafariJSProgTopics/Tasks/ObjCFromJavaScript.html
There are libraries that build on top of Apple's code. I've used Jockey (https://github.com/tcoulter/jockeyjs) and it works pretty well.
More info here: iOS JavaScript bridge