Comments (7)
Are you using an iPhone 6/6+? This issue may be related to this one: CooperRS/RMPickerViewController#14
from rmdateselectionviewcontroller.
Yes, I am. Odd, that issue isn't showing up in the issues list for me, but the link works just fine.
But thank you, I'm glad to hear this is being fixed! Let me know if I can be of any help.
from rmdateselectionviewcontroller.
To be honest, I have no clue how to fix this :/
RMDateSelectionViewController uses an additional UIWindow to show the date selection view above all other views. If I do not use an additional UIWindow and instead add the picker view controller to the current view hierarchy, the swipe gesture of UINavigationControllers to go back, is still enabled and messes up everything. See: #28
So, I'll need an additional UIWindow. Then I want to support rotation. But when a UIWindow auto rotates, it shows a black background hiding everything behind it. That's not what I want, so I have to disable rotation of a UIWindow and handle it myself (done by setting the root view controller of the additional UIWindow which returns NO on shouldAutoRotate).
That's why I'm setting the frame of an UIWindow when showing the date selection view and when rotating. This works on iOS 7 and 8 on all devices. Except for the iPhone 6/6+. On these devices something weird is done when setting UIWindow frames.
Maybe, someone can help me out?
from rmdateselectionviewcontroller.
It seems this issue is resolved (at least for me) by including my storyboard file in 'Launch Screen File' under App Icons and Launch Images. You can use a .nib file in it's place if you don't have a storyboard. I got the clue from here
http://stackoverflow.com/questions/26030420/iphone-6-orientation-transform-issue-uiwindow-object
So i guess this comes under the realm of iOS bug?
Really nice control btw, thanks
from rmdateselectionviewcontroller.
So i guess this comes under the realm of iOS bug?
Seems to be related to the question whether or not an app is optimized for iPhone 6/6+. My demo project was not optimized. If you add a Launch Screen file it is optimized. The control also works as expected when you add a good old Default.png of the right size. In this case the app is treated as an optimized app, too.
Thanks for your help!
from rmdateselectionviewcontroller.
I'm going to be testing this in a project shortly. If it works I'll let you know and mark it as closed!
from rmdateselectionviewcontroller.
Just tested this, and you are correct. Everything seems to work! The animation for changing orientations while the date selection controller is open is a tiny bit lag on my iPhone 6 Plus, but I don't think there is much that we can do about that. It's a complex animation.
Great job on this library!
from rmdateselectionviewcontroller.
Related Issues (20)
- Sometimes disappears offscreen HOT 5
- Date picker wheel not showing in iOS 8 iPhone HOT 7
- while scrolling HOT 5
- fatal error: unexpectedly found nil while unwrapping an Optional value HOT 2
- Getting wrong time HOT 2
- Dismiss parent view controller after picking the time HOT 2
- Readme is old & init doesn't work HOT 2
- White button text HOT 2
- RMAction problem on swift3 HOT 17
- Swift 3 multiple errors HOT 3
- set max date HOT 1
- Chartage Support? HOT 3
- In datetimepickermode, view goes outside the alert with style set as RMActionControllerStyleWhite HOT 2
- Change the font/size of the Title attribute? HOT 1
- Change font color HOT 1
- Date Selector Doesn't handle iOS 13 dark mode HOT 3
- I want only month and year column in date picker
- Xcode 12 display wrong HOT 3
- iOS 14/ Xcode 12 HOT 1
- iOS 14/ Xcode 12 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rmdateselectionviewcontroller.