Comments (7)
This happens on iOS 7 as well. If I present a modal, then start and cancel an interactive transition, and then rotate the device, the presenting view does not rotate along with the modal.
In addition, if I present a modal view from landscape, the modal is presented from the wrong direction and does not fit the frame.
from zfdragablemodaltransition.
Actually, the latter issue I mentioned was already fixed, I was working from an older version.
The first issue (rotation gets messed up if you start dragging modal to dismiss it, then cancel the dismiss by dragging the modal back) is still happening in the latest version. You can reproduce this in the demo project via these steps:
- Set modal background to transparent.
- Run the demo app, then display the modal from the bottom.
- Drag down on the modal window, then drag back up so the modal doesn't dismiss.
- Rotate the device.
The presenting view in the background doesn't rotate with the device - it only updates to the correct orientation when you dismiss the modal view.
from zfdragablemodaltransition.
After I tried many ways to fix that in ios7, the rotation methods in presentingViewController
never get called after drag to dismiss, not like in ios8. So I assume that is a bug in iOS7. I think I going to rotate that layer manually. Sorry
from zfdragablemodaltransition.
@bmueller please try this commit.
BTW I will keep this issue open for ios8. I will fix it later
from zfdragablemodaltransition.
Looks like it's working in the demo now, though in my app when I rotate from portrait to landscape, the background view does rotate but it has a big gray bar covering the right half of the screen. Probably something to do with my implementation, I'm guessing.
from zfdragablemodaltransition.
Not the same issue, but might be related: On iOS 8 (iPhone Simulator), if you dismiss without the animation, it doesn't bring the view back to the front. It stays pushed in with black edges around it. If you repeat the operation it pushes it more and more.
from zfdragablemodaltransition.
@anasb I just create the issue here #12 .
from zfdragablemodaltransition.
Related Issues (20)
- Dragging down and releasing modal overrides prefersStatusBarHidden HOT 4
- Getting a blank view controller when performing segue HOT 2
- how to make it only show half of the screen like the gif HOT 1
- Swift option HOT 1
- Demo crash: changing draggable switch
- Presenting a page view controller
- When transition can set setStatusBarStyle:UIStatusBarStyleLightContent?
- There has a few seconds delay when i dismissed ViewController
- How to detect and handle UIScrollView's over scroll at the top
- DatePicker inside scroll view HOT 2
- from view disappears HOT 1
- The modal view messes with the views of other view controllers upon dismissing HOT 1
- New Release?
- Animation glitches with differently locked orientations
- ios 11/xcode 9 beta issue: tableview contained in zfdraggablemodaltransition doesn't accept touch events HOT 2
- Prevent to close the modal when swipe down
- nvm
- Receive touches on controller that is behind the one being presented
- A present B, B push C ,the gesture have no effect
- Application hang when do dismissViewControllerAnimated:YES in iOS 13.
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 zfdragablemodaltransition.