I need to know what should be done to use JavaScript in a HTML sitting in UIWebView to notify Objective-C that something has happened?  To be more exact, I'm playing some JavaScript animation in HTML and I need to alert the Objective-C code that...
I'm using a UIWebView for displaying content, in the form of an HTML string – not a website, higher than the screen of the iPhone, without needing to scroll in the webView itself, leaving that to the parent scrollView.  To achieve this, I need...
I have a Cocoa app that uses a WebView to display an HTML interface. How would I go about calling an Objective-C method from a Javascript function within the HTML interface?...
I make any webView And I want to call from javascript any objective c method which return any parameter. I tried many ways but not allowed .  Objective c method here:  - (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)re...
I'm trying to use ABNewPersonViewController in my React Native app. This is how it's used in Objective-C:  ABNewPersonViewController *picker = [[ABNewPersonViewController alloc] init]; picker.newPersonViewDelegate = self;  UINavigationControl...
I am recording a sound file ( wav format) in objective C. I want to pass this back to Javascript using Objective C stringByEvaluatingJavaScriptFromString.  I am thinking that I will have to convert wav file to base64 string to pass it to this functio...
I am trying to get the HTML content from a website , but it is blocked by JavaScript.  Here is the implementation:  - (void)viewDidLoad {   NSURL *htmlUrl = [NSURL URLWithString:@"https://color.adobe.com/explore/most-popular/?time=week"];   N...
How can I get the items in the table written by this script in iOS:  <script type="text/javascript" src="//www.google.com/trends/embed.js?hl=en-US&cat=0-14&date=today+7-d&cmpt=q&content=1&cid=RISING_QUERIES_0_0&...
In an iOS app I'm developing, I show an UIWebView to allow the user to upgrade their account. The page contains links to show the user other informations, but you hold your finger on the link, a menu like this will pop up:   As you can see, it re...
I have a simple javascript function that takes two variables. I need to pass two variables that I already have in my Objective-C (iOS) application to this javascript function. My line of code to run the javascript is:  [webView stringByEvaluatingJava...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.