Git Product home page Git Product logo

Comments (8)

gradha avatar gradha commented on August 16, 2024

I've been using it with iPad apps all the time. You can open the demo provided in the project and change the device family to ipad. The demo UI will look bad on the ipad, but everything should be functional.

from dcintrospect.

vpdn avatar vpdn commented on August 16, 2024

I am also just getting a black screen (http://screencast.com/t/UXpxN3fSdB) on the iPad 4.3 emulator.

It seems the issue has to do with the calculation of the statusbar location. The black screen you're seeing is actually the status bar overlay, drawn with the dimension (w:1024, h:1024). As a quick check, try commenting out the code in "updateStatusBar" in the DCIntrospect class.

from dcintrospect.

gradha avatar gradha commented on August 16, 2024

I think I found the culprit. Do your applications launch into portrait or landscape mode? DCIntrospect works fine when the application supports portrait orientations, but seems to fail when you restrict the application to landscape. I tried updating DCStatusBarOverlay::updateBarFrame replacing all instances of self.frame.size.* with the constant 20, and then the bar is resized correctly.

However, possibly due to the unexpected launch orientation, the transforms don't work as expected and the overlay status is left floating in the middle of the screen... more precisely, at offset (748, 505) as measured by DCIntrospect itself.

from dcintrospect.

vpdn avatar vpdn commented on August 16, 2024

DCIntrospect works fine when the application supports portrait orientations, but seems to fail when you restrict the application to landscape.

Yes, and the problem can be reproduced with the DCIntospect Demo as well. Simply set shouldAutorotateToInterfaceOrientation to UIInterfaceOrientationIsLandscape(interfaceOrientation).

from dcintrospect.

gradha avatar gradha commented on August 16, 2024

I've tried to add a static variable to remember the first orientation the method goes through and use that to counter the expected rotation. See gradha@bae3260
Now the black bar seems to be positioned and rotated correctly but I'm missing the labels.

from dcintrospect.

gradha avatar gradha commented on August 16, 2024

Ok, ignore that one, I was looking at the wrong place, this should work better: gradha@548afd9

The help still comes up rotated incorrectly, but the bar should not be a problem any more. See if it works for you.

from dcintrospect.

vpdn avatar vpdn commented on August 16, 2024

Looks good. This does fix the status bar orientation issue for me.

from dcintrospect.

xiakehc avatar xiakehc commented on August 16, 2024

need restart Project and setting devices is iPad,

from dcintrospect.

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.