Comments (10)
Can you be a little more specific? Maybe a quick drawing of hierarchy?
from agwindowview.
(Just to avoid any confusion)
from agwindowview.
Sure, I think it's a weird case I'm having here, here's a screencast:
https://www.screenmailer.com/v/iuK5qAiauZY
Let me know if it's not clear.
Thanks a lot!
Adrian
from agwindowview.
This is the most awesome github-issue I've read so far. Very clear and easy to understand. Thanks for taking that extra effort!
Firstly, this is a use case I haven't tested. I assumed AGWindowView would overlay modals – so here we go into unchartered territory.
Debugging: Can you check if this bug also occurs if you don't use AGWindowView? It could theoretically be some trouble with UIViewController
and its supportedInterfaceOrientations
?
As a final note: I don't recommend using AGWindowView for displaying small detailsheets like that. I rather recommend to display your detailsheet using the standard API's of UIKit. A simple approach could be to write [self.navigationController.view addSubview:modal]
.
from agwindowview.
Hehe, thanks, and thanks for the quick reply :-)
The reason why I’ve used AGWindowView is that I’ve had some troubles with the orientation when adding my view to the application’s window ([[UIApplication sharedApplication] delegate] window]
). Adding the view to the navigation controller’s view doesn’t work, might be because I’m using a UISplitViewController.
I just tried adding the view to the main window and it looks like the orientation issue occurs there as well, so it might be a wrong approach from me to present it like that.
How would you present a custom built modal view controller like mine?
Cheers
Adrian
On Oct 26, 2014, at 8:54 PM, Håvard Fossli [email protected] wrote:
This is the most awesome github-issue I've read so far. Very clear and easy to understand. Thanks for taking that extra effort!
Firstly, this is a use case I haven't tested. I assumed AGWindowView would overlay modals – so here we go into unchartered territory.
Debugging: Can you check if this bug also occurs if you don't use AGWindowView? It could theoretically be some trouble with UIViewController and its supportedInterfaceOrientations?
As a final note: I don't recommend using AGWindowView for displaying small detailsheets like that. I rather recommend to display your detailsheet using the standard API's of UIKit. A simple approach could be to write [self.navigationController.view addSubview:modal].
—
Reply to this email directly or view it on GitHub #16 (comment).
from agwindowview.
Can you just for the sake of debugging try to open the browser (the modal) without displaying the detailsheet?
I just tried adding the view to the main window and it looks like the orientation issue occurs there as well, so it might be a wrong approach from me to present it like that.
Yep, AGWindowView does not do any magic besides rotating the view correctly. So this should be no different from AGWindowView.
from agwindowview.
You’re right, it happens even if the modal is not on screen, so it has nothing to do with it nor the AGWindowView.
Just for the reference: it looks like it’s a common problem in UISplitViewController, if there’s a modal view controller on top the split view controller will not receive the ui orientation changes callbacks anymore - quite weird.
I’m closing down this this issue (as it’s not really an issue) and I’ll further investigate how to fix it - let me know if you’re curious to find out what the solution was :-)
On Oct 26, 2014, at 9:18 PM, Håvard Fossli [email protected] wrote:
Can you just for the sake of debugging try to open the browser (the modal) without displaying the detailsheet?
I just tried adding the view to the main window and it looks like the orientation issue occurs there as well, so it might be a wrong approach from me to present it like that.
Yep, AGWindowView does not do any magic besides rotating the view correctly. So this should be no different from AGWindowView.
—
Reply to this email directly or view it on GitHub #16 (comment).
from agwindowview.
Okay, as I suspected, feared and hoped. :-)
Well, if you open up a question on stackoverflow I'll be happy to add a bounty of 100 points to draw attention. Just send me a link if you open a question.
from agwindowview.
There’s lots of threads on the subject on StackOvervflow, but no concrete answer to fix it (or none seems to work)
Seems to do the trick if I change the presentation style from Full Screen to Page Sheet.
Thanks for the help, I wouldn’t have thought it was because of this :-)
Cheers
On Oct 26, 2014, at 11:00 PM, Håvard Fossli [email protected] wrote:
Okay, as I suspected, feared and hoped. :-)
Well, if you open up a question on stackoverflow I'll be happy to add a bounty of 100 points to draw attention. Just send me a link if you open a question.
—
Reply to this email directly or view it on GitHub #16 (comment).
from agwindowview.
from agwindowview.
Related Issues (17)
- Podspec HOT 4
- WindowView not overlaying keyboard HOT 6
- AGWindowView not work well in iOS8 HOT 14
- iOS8 HOT 3
- iOS 7 Support? HOT 8
- AirPlay device picker broken on iOS8 iPad HOT 4
- AGWindowView bad layout when behind a pop-up UINavigationController HOT 12
- iOS8 UIActivityViewController problem on iPhone HOT 1
- UIWebView Add as SubView HOT 5
- initAndAddToKeyWindow does not dispatch touch events to subviews HOT 5
- New maintainer of AGWindowView wanted
- Getting crash when removing. HOT 4
- In AGWindowView.m, 'Convenience' is misspelled HOT 1
- iOS 5 Support? HOT 8
- Rotation should be possible even with locked statusBar orientation HOT 4
- Subviews do not get Layouted on Rotation HOT 2
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 agwindowview.