Support for iPad? #26

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

Projects

None yet

4 participants

@felixschulze

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

@gradha
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
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
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
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
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
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
vpdn commented Oct 8, 2011

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

@timd timd pushed a commit to timd/DCIntrospect that referenced this issue Dec 3, 2012
@mattt mattt [Issue #26] Removing UDID default header from AFRestClient a0c5707
@WPDreamMelody

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