Project: titanium
Issue TIMOB-18730: iOS8: DocumentViewer: Unbalanced calls to begin/end appearance transitions for QLRemotePreviewContentController
h6.Issue Description We get the following message when loading a pdf in the DocumentViewer component: "Unbalanced calls to begin/end appearance transitions for ". Getting this message is sometimes associated with the app freezing but generally app goes okay anyway. h6.Sample Code {code} var doc = "http://www.legis.state.ak.us/basis/iphonepages/IPV3get_documents.asp?session=29&docid=3324&minname=Agenda%5FLBA%5F17Mar15%5FLocation+Change%2Epdf"; var win = Ti.UI.createWindow(); win.open(); var file = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'document.pdf'), client = Ti.Network.createHTTPClient({	onload : function() {	// Open a doc viewer.	var docViewer = Ti.UI.iOS.createDocumentViewer({	url : file.nativePath	});	docViewer.show({	animated : true	});	},	onerror : function(e) {	alert('Error: ' + e);	} }); client.open('GET', doc); client.file = file; client.send(); {code} h6.Console Output {code} -- Start simulator log ------------------------------------------------------- [INFO] Application started [DEBUG] Reading stylesheet from: /Users/egomez/Library/Developer/CoreSimulator/Devices/D2DD3F81-EDBF-4C3B-A975-A41501FF3702/data/Containers/Bundle/Application/AE4C1686-4155-44A9-A3F5-AF463281A0F4/TableViewRepro.app/stylesheet.plist [DEBUG] 2015-03-23 16:01:38.614 TableViewRepro[10909:330239] You've implemented -[ application:performFetchWithCompletionHandler:], but you still need to add "fetch" to the list of your supported UIBackgroundModes in your Info.plist. [DEBUG] 2015-03-23 16:01:38.615 TableViewRepro[10909:330239] You've implemented -[ application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist. [INFO] TableViewRepro/1.0 (4.0.0.944c821) [DEBUG] Loading: /Users/egomez/Library/Developer/CoreSimulator/Devices/D2DD3F81-EDBF-4C3B-A975-A41501FF3702/data/Containers/Bundle/Application/AE4C1686-4155-44A9-A3F5-AF463281A0F4/TableViewRepro.app/app.js, Resource: app_js [DEBUG] Application booted in 415.318012 ms [DEBUG] 2015-03-23 16:01:40.414 TableViewRepro[10909:330239] Unbalanced calls to begin/end appearance transitions for . {code}
Story points: 5