• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: shouldAutorotateToInterfaceOrientation not being called ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shouldAutorotateToInterfaceOrientation not being called ...


  • Subject: Re: shouldAutorotateToInterfaceOrientation not being called ...
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 25 Jul 2010 12:51:16 -0700
  • Thread-topic: shouldAutorotateToInterfaceOrientation not being called ...

On Sun, 25 Jul 2010 05:21:44 -0700, Jay Reynolds Freeman
<email@hidden> said:
>
>
>This code shows instrumentation to report the method call

Instrumentation code can fail silently. How about just setting a breakpoint?

My first step in a case like this would be breakpoint everything in your
UIViewController subclass. Your first step is to convince yourself that this
class is being instantiated and that *any* of its code is being called. Your
second task is to convince yourself that the instance in question is the one
whose view property points to the actual view in the actual window.

Here's something else to think about. If you make a totally empty view-based
project, straight from the template with no code of your own, and put a
breakpoint on "return YES" in shouldAutorotate..., you can see that this
method *is* called. So then you can ask yourself how *your* project differs
from that.

m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: shouldAutorotateToInterfaceOrientation not being called ...
      • From: Jay Reynolds Freeman <email@hidden>
  • Prev by Date: Re: Discard all drawing in a UIView
  • Next by Date: Mac sample code using USB and CFRunLoopSource
  • Previous by thread: Re: shouldAutorotateToInterfaceOrientation not being called ...
  • Next by thread: Re: shouldAutorotateToInterfaceOrientation not being called ...
  • Index(es):
    • Date
    • Thread