Code Monkey home page Code Monkey logo

Comments (7)

CooperRS avatar CooperRS commented on August 23, 2024

Are you using an iPhone 6/6+? This issue may be related to this one: CooperRS/RMPickerViewController#14

from rmdateselectionviewcontroller.

AnthonyMDev avatar AnthonyMDev commented on August 23, 2024

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.

CooperRS avatar CooperRS commented on August 23, 2024

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.

steveoleary avatar steveoleary commented on August 23, 2024

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.

CooperRS avatar CooperRS commented on August 23, 2024

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.

AnthonyMDev avatar AnthonyMDev commented on August 23, 2024

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.

AnthonyMDev avatar AnthonyMDev commented on August 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.