Quantcast
Viewing all articles
Browse latest Browse all 8068

Webview problem with Alloy on iPad with SplitWindow

I've been having some problems with a WebView in my first Alloy application. Everything works fine on the iPhone (simulator and device). Its only on the iPad that I have a problem - the difference in the code being that I am using a SplitWindow for the iPad. The WebView appears to work ok in the iPad simulator but on the device itself it seems to run very slowly and always crashes after I have clicked on a few links. I have re-produced the problem in a basic app here. Am I doing something wrong? Could someone try and re-produce this on their iPad and see if they get the same issue? I am using the latest version of the Titanium SDK and compiling to the latest iOS SDK (6.1). My iPad is an iPad 3.

Index.js

$.index.open();
Index.xml
<Alloy>
    <SplitWindow id="index" showMasterInPortrait = "true" formFactor="tablet" platform="ios">
        <Require src="master"/>
        <Require src="detail"/>
   </SplitWindow>
</Alloy>
master.xml
<Alloy>
    <Window>
    </Window>
</Alloy>
detail.xml
<Alloy>
    <Window title = "Detail">
            <Require src="webViewWin"/>
    </Window>
</Alloy>
webViewWin.xml
<Alloy>
    <WebView url = "http://www.bbc.co.uk" id="webView"/>
</Alloy>
If I run that on my device and try and click on a few links, I get a crash.

thanks

Richard


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>