GithubHelp home page GithubHelp logo

Comments (10)

hfossli avatar hfossli commented on June 5, 2024

Can you be a little more specific? Maybe a quick drawing of hierarchy?

from agwindowview.

hfossli avatar hfossli commented on June 5, 2024

(Just to avoid any confusion)

from agwindowview.

AdrianFlorian avatar AdrianFlorian commented on June 5, 2024

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.

hfossli avatar hfossli commented on June 5, 2024

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.

AdrianFlorian avatar AdrianFlorian commented on June 5, 2024

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.

hfossli avatar hfossli commented on June 5, 2024

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.

AdrianFlorian avatar AdrianFlorian commented on June 5, 2024

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.

hfossli avatar hfossli commented on June 5, 2024

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.

AdrianFlorian avatar AdrianFlorian commented on June 5, 2024

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.

hfossli avatar hfossli commented on June 5, 2024

👍

from agwindowview.

Related Issues (17)

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.