No rotations after programmatically setting rootViewController in iOS 8 - uiviewcontroller

After programmatically setting self.window.rootViewController in my controller, none of the orientation change callbacks (old or new) are called for the rest of the time the app is running under iOS 8. Is there a different way you are supposed to do that in iOS 8? or is this a bug and if so does anyone have a workaround?

Related

StageWebView - Change system browser

Running StageWebView on a Windows Desktop machine, uses IE as it's browser, no matter what is the systems default Internet Browser. Is it possible to change this to Chrome?
I'm not interested in the built in Webkit browser in AIR
Sorry but the answer is no, the StageWebView class on mobile or desktop uses the OS provided web control to display content on the Stage:
On desktop computers (in the desktop and extended desktop profiles),
the StageWebView class uses the system web control provided by the
Flash Player plugin.
Thus on Windows that would be Internet Explorer (IE) via the IWebBrowser2 interface which Google's Chrome does not support.
Note: This is assuming you are passing true for the useNative parameter on the StageWebView constructor, otherwise the on Windows/OS-X you would get the old built-in Webkit version. This can be checked by seeing which user-agent is used (try http://whatsmyuseragent.com or similar to verify)
Air 18 (or 19 beta results in same rendering) on Windows and OS-X:

Set supported orientation for Windows Phone 8 project

I have a WP8 project originated from template "DirectX App (Windows Phone 8.0)". How do I set supported orientation (I want to make it landscape-only)? I have found file named "WMAppManifest.xml" in project folder, but it has no "orientation" option.
for performance reasons, the option of automatic rotation is not available on Windows Phone 8, so we’re stuck with having to manually take care of everything: rotating stuff before we draw them, and processing input values to fit them to the new orientation. There are several things that we need to do in order to support other orientations besides the default Portrait one.
You can find more Reference here Handling Orientation in a Windows Phone 8 game

Server-Sent Events does not work on Nexus 7 webview with Android version 4.3

I'm now using Nexus 7 for my project which is using Server-Sent Events to get alert message.
On Nexus 7 Chrome browser, it works well.
But when I load the same page using webview, it does not work (saying "your browser does not support server-sent events...").
The source codes are exactly the same as [http://www.w3schools.com/html/html5_serversentevents.asp].
I think there maybe some difference between Chrome browser and Android Webview.
Could some one tell me how to make it work using Android Webview?
I think WebChromeClient is the one you need anyway. I am using both WebViewClient AND WebChromeClient because the latter one is full HTML5 enabled.
So in your Android WebView you can use BOTH Clients at the same time.
For instance
// clients
webView.setWebViewClient(new CustomWebViewClient(this));
webView.setWebChromeClient(new CustomWebChromeClient(this));
I use WebChromeClient for all the fancy stuff, like Javascript popups and yes, SSE using PHP scripts.

Map Freezes on iOS 7 with Google Maps SDK 1.4

I've been seeing a strange issue using Google Maps SDK 1.4 (and 1.2... probably others) on iOS 7 beta 4 and 5.
After a brief time of zooming and panning on a device running iOS 7 beta 4 or 5, my GMSMapView will stop responding to gestures. It wont zoom or pan or do anything when you touch it.
When this happens, every other interface element present on screen will remain functional. Programmatically removing and adding the map from the view will re-enable the map. Rotating the device does not affect the map.
It happens only on a device running the iOS 7 beta and not on a simulator running iOS 7. Running the same app on an iOS 5.1 and 6.x device will not reproduce this issue.
Has anyone else had an issue like this? I am not a seasoned iOS developer, so I could be missing something simple.
Thanks a bunch!
GMSMapView(UIViewController) on UINavigationController.
Insert this code in viewDidLoad method.
-(void)viewDidLoad {
[super viewDidLoad];
// iOS7 add this code
if ([self.navigationController respondsToSelector:#selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
}
.... your codes
}
Download the latest version of Google Maps SDK. This issue has been solved in Version 1.8.0 - May 2014.
Check the release notes.

Can a HTML5 web application access the camera on a Windows 7 tablet

I have a HTML/Javascript web application which integrates with a device's camera using PhoneGap.
Is there any way we can run the application on a Windows 7 tablet (e.g. as a normal website) and be able to integrate with the camera on the device.
You will be, eventually, when the getUserMedia API is implemented in more browsers (currently only available in Opera and special builds of other browsers), but at the moment, no.
I don't believe there is a way to do this.
We enabled photos to be dragged into the application to support this feature. It means the user takes a photo as dictated by the tablet and then has to drag/select the appropriate photo file to add to the application.