-
-
Notifications
You must be signed in to change notification settings - Fork 740
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picker rotating when host view controller fixed to portrait #100
Comments
Hi. Now you can't do anything with orientation of the picker. And it's really can cause problems. |
Fixed. I add property |
Hi, I'm trying to use this new property by setting it to UIInterfaceOrientationMaskPortrait but I'm still getting the same animation effect when the device is rotated. Am I doing something wrong? How can the picker be locked for rotation? I've updated to version 1.3.10. |
@jonathan2708 ok, I reopen issue. I try to fix it soon. |
Hi, many thanks for looking into this. I've pasted the code I'm using below, and included a screenshot too.
|
I am having the exact same problem. The picker is ignoring the value that is set to supportedInterfaceOrientations property. |
+1 |
@ralito , @Morpheus2002 Can't reproduce, thus can't fix it. Can you give me more info, how to reproduce it? |
I locked the presenting view to portrait mode with this functions:
As on the screenshot above from @jonathan2708 the app itself stays in portrait mode, but the picker view is rotated and loses background color. Not using
|
@jonathan2708 , @ralito , @Morpheus2002 fixed in |
The issue still persists. Scenario to reproduce:
|
I agree with @gabula80 - still not fixed in 1.5.0. As a temporary fix for my portrait-only app I have made the following change to SWActionSheet.m :
|
Ok, I reopen this issue. |
Since my app support all interface orientations for iPad and only Portrait for iPhone as a temporary solution in the SWActionSheet.m I implemented :
I hope this helps someone. :) |
Same issue here. The picker is dismissed well when I'm rotating, but the application is rotating anyway. I didn't look too deep, but this looks weir for me in
That should return the orientation set in the application / AbstractActionSheetPicker to respect the orientation setup, isn't it? |
@tbaranes the main point is detect orientation of application. and dismiss picker only when application is |
Should the picker really be dismissed? I mean, if the orientation isn't available for the device, the picker should just stay open in place like the rest of the application. It should be the developer's choice to dismiss it or not following the case. Moreover, that would probably make easier to solve this issue. |
@tbaranes I like the way you think. 👍 This behaviour looks logically and clear. |
I believe this bug has made it's way back. |
This is still happening, how is the appropriate way to avoid the rotation of the picker? |
@jonathan2708
} |
In my app target settings I've ticked all orientations except for 'Upside Down'. In most view controllers I've limited the orientation to 'Portrait' by using the following code :
-(NSUInteger)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
This locks the view controller to portrait, but the ActionSheetPicker doesn't respect this and animates itself to landscape when the device is rotated. It also has the effect of taking the status bar with it so this ends up displayed along the long edge of the phone.
How should I use the control so that it either locks to portrait, or dismisses when the device is rotated? I'm building with Xcode 6/iOS 8 SDK.
The text was updated successfully, but these errors were encountered: