Skip to content
Advertisement

Tag: ios

Can’t show Image in React Native

I’m using react-native 0.28.0 I’m trying to show an image on iPhone simulator according to this tutorial: Introduction to React Native: Building iOS Apps with JavaScript | Appcoda Then in the render() function, I add this: The space allocated for the image is there, but the image is not shown. Answer In addition to Jonathan Stellwag’s answer, the 1st solution

WebViewJavascriptBridge on iOS

So I’m creating an app in which there’s a UIWebView which shows a list of locations. My goal is to make it possible that once the user clicks one of the locations, my app can get the lat and longitude of the spot and therefore launch an integrated Navigation SDK. My point is how do I get and pass the

Converting base64 to blob in javascript

I tried to convert a JPEG’s base64 string to a blob on a Cordova/hybrid app running on iOS 8 using the following function b64toBlob. However it’s giving an error when we do How can be work around this error? Answer Try this out. Please note that dataURI is assumed to include base64 prefix. (e.g. “data:image/jpeg;base64,”) Usage:

iOS WKWebView not showing javascript alert() dialog

I am having some trouble getting a WKWebView in iOS 8 to display an alert dialog that is called from Javascript. After creating a standard WKWebView and loading an HTML file, I have a button on the page that creates a simple alert with some text. This works in UIWebView and in Google Chrome/Safari, but does not appear to be

Use of window.location doesn’t work on iPad

I’m using some JavaScript that will redirect the user to another URL after a fixed period of time. This is working well on all browsers but on an iPad 3 I have to test on it isn’t working. The timeout fires and I call and I’ve also tried I can see the URL in the browser changing to www.someurl.ocom but

EXEC_BAD_ACCESS error when using WebViewJavascriptBridge

I’m a very new iOS developer (I only started a few days ago), and I’m trying to utilize the WebViewJavascriptBridge class with a UIWebView that I’ve got on my Storyboard. Whenever I try to use it, I get an EXEC_BAD_ACCESS error. The trouble lines seem to be: To be exact, the last line. If I don’t make that request, I

Advertisement