orientation

How to set ContentPage orientation or screen orientation on particular page in Xamarin.Forms cross platform

五迷三道 提交于 2019-12-06 07:25:34
How to set Content-Page orientation or screen orientation on particular page in Xamarin.Forms cross platform. I have set ScreenOrientation = ScreenOrientation . Portrait at property of all platform but I want to show some page show in both variation means Portrait and Landscape, so how to set on page in `xamarin.forms. set screen orientation not device wise but set on page-wise some pages show in Landscape & some page show in Portrait in xamarin forms cross- platform You can do this by creating a dependency using DependencyService for specific platforms. Try doing this: Interface public

Iphone Landscape mode switching to Portraite mode on loading new controller

老子叫甜甜 提交于 2019-12-06 06:43:52
问题 My app launches in landscape mode correctly and works great: - (BOOL) shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if(interfaceOrientation == UIInterfaceOrientationPortrait) return NO; if(interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft ) return YES; return (interfaceOrientation == UIInterfaceOrientationPortrait); } And updated Info.plist with UIInterfaceOrientation =

UIView to Ignore Orientation or Stick-To-Bottom Container

谁都会走 提交于 2019-12-06 05:46:47
I want to display UIView on the bottom of the screen in portrait mode, so when a phone is rotated and horizontal orientation would reposition/resize all subviews, that one UIView would remain where it was, with the same size and original position (i.e. on the right end of horizontal orientation if it was on the bottom of portrait mode). Is there a good way to do it? You can set the autoresizing mask like this: myView.autorezisingmask = UIViewAutorezingMaskFlexibleTopMargin; This will keep the view at the bottom. I can think of several ways to do this. One way, that I show below relies solely

How can I ensure correct playback orientation of recorded video?

感情迁移 提交于 2019-12-06 05:37:06
问题 I'm using the MediaStore.ACTION_VIDEO_CAPTURE intent to capture video and later play it back using a VideoView . I would like to know the orientation of the video that was captured. I don't want to use the orientation at the time of the intent call because the user may rotate the device prior to hitting the shutter button. I also don't want to implement my own custom video capture. Is the orientation of the video stored in the saved file and/or returned in the intent result? 回答1: Is the

supportedInterfaceOrientations not called with iOS 7

余生长醉 提交于 2019-12-06 05:17:27
问题 I searched for an answer to this, but couldn't find anything which solved my problem. So here's the problem: I have a custom UINavigationController, when creating it the supportedInterfaceOrientations method is called on the rootViewController(only supports portrait). But when pushing an other ViewController onto the stack this method isn't called on the pushed ViewController(supports all but upside-down). I solved it by calling [self supportedInterfaceOrientations] in the viewDidLoad -method

Windows form rotation

ⅰ亾dé卋堺 提交于 2019-12-06 05:13:26
问题 When you create a form in .Net it appears as a dialog box in a portrait layout. No one normally likes to read sideways, or upside down, but I have a very valid reason to rotate the form. Anyone knows how to do it on Windows Vista with C#? 回答1: Does it have to be in WinForms? This is very easy to do in WPF, using rotation transforms. Unfortunately, the WindowsFormsHost integration with WPF does not allow rotation transforms. EDIT I understand, now, that the form in question is out of the

iphone always returns UIInterfaceOrientationPortrait

大城市里の小女人 提交于 2019-12-06 05:13:19
I need to make sure that when my UIViewController loads, it rotates as needed. I have implemented the shouldAutorotateToInterfaceOrientation methods and its all working fine, except when the app first loads (when the iphone is in landscape mode) or when going from a UIViewController which was is portrait mode the interfaceOrientation and the [[UIDevice currentDevice] orientation] always returns portrait mode! I have been reading blogs and even some SO questions, but none of them seem to address the underlying issue. I am using a standard UINavigationController application. So the first view is

Positioning objects in views during re-orientation in iPad

两盒软妹~` 提交于 2019-12-06 05:07:49
问题 iPad Gurus: Apple wants us to support all orientations. I take that to mean that a particular layout should either rotate so that all objects are positioned relatively the same OR, if that doesn't look good, then they ought to be repositioned, OR two views ought to be designed and built. If I rely on the built-in rotation mechanism, the objects either get resized or they straddle the edge of the page in one orientation or the other, or they disappear from view altogether. I can't seem to find

iOS: Orientation check rotation on ViewDidAppear

﹥>﹥吖頭↗ 提交于 2019-12-06 04:22:37
Background: I want to make sure my viewControllers rotate properly when it appears. My viewControllers have excellent codes managing the rotation and orientation when it is visible. Problem: Given two viewControllers in a NavigationController, viewC1 and viewC2 . I did the following: 1.) Set rootViewController to viewC1 2.) Push viewC2 into the NavigationController 3.) Rotate 4.) Pop viewC2 5.) viewC1 is still stucked in the old orientation look (as in the transformation code in willAnimateRotationToInterfaceOrientation was not called) with the new orientation. What can I do to ensure viewC1

CSS Media Query Orientation Change not working PhoneGap

梦想与她 提交于 2019-12-06 04:04:36
问题 when using <link rel="stylesheet" media="all and (max-width: 640px) and (orientation:portrait)" href="css/i-hoch.css"> <link rel="stylesheet" media="all and (max-width: 960px) and (orientation:landscape)" href="css/i-quer.css"> on iPhone Mobile Safari the CSS is changed when device is rotated. The same Page does not load the different CSS when this code is used within the PhoneGap Framework (0.9.5.1). We also had issues with the <meta name="viewport" which could be fixed but orientation