Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for iPad? #26

Open
felixschulze opened this issue Aug 31, 2011 · 8 comments
Open

Support for iPad? #26

felixschulze opened this issue Aug 31, 2011 · 8 comments

Comments

@felixschulze
Copy link

Has anyone got this working for iPad? I'm getting only a black screen with DCIntrospect on it.

@gradha
Copy link

gradha commented Aug 31, 2011

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.

@vpdn
Copy link

vpdn commented Oct 5, 2011

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.

@gradha
Copy link

gradha commented Oct 5, 2011

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.

@vpdn
Copy link

vpdn commented Oct 5, 2011

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).

@gradha
Copy link

gradha commented Oct 7, 2011

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.

@gradha
Copy link

gradha commented Oct 7, 2011

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.

@vpdn
Copy link

vpdn commented Oct 8, 2011

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

domesticcatsoftware added a commit that referenced this issue Oct 11, 2011
…d_try

Fixes size for non portrait launch apps. Refs #26.
timd pushed a commit to timd/DCIntrospect that referenced this issue Dec 3, 2012
@xiakehc
Copy link

xiakehc commented Dec 5, 2014

need restart Project and setting devices is iPad,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants