Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well I have determined that one must create a dummy view controller otherwise the darn thing won't slide in.</p> <p>I create a class called <code>Sys_Mail</code> that is a <code>@interface Sys_Mail : UIViewController &lt;MFMailComposeViewControllerDelegate&gt;</code></p> <p>and then i create basically a root view view controller. I wrestled with portrait/landscape for hours but determined that if you attach the view controller to the top level view (which contains my landscape transform) then it slides in as a landscape window. There is just one visual glitch, the parent window gets moved around for a few seconds while the new window slides in, this is a side effect of the landscape transform doing odd things to the parent.... </p> <p>in order to get landscape orientation on the sliding window you must declare a method in your <code>Sys_Mail</code> class that handles the autorotate message:</p> <pre><code>//======================= // shouldAutorotateToInterfaceOrientation //======================= // see if this ever gets called for the view controller -(BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation { if (TRACE) printf ("shouldAutorotateToInterfaceOrientation\n"); return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); // or whatever orientation is needed } </code></pre> <p>the variable <code>gMasterView</code> refers to my top level view (that has the landscape transform and is attached to the window). Subviews don't seem to work, view controllers are awful THEY ARE MORE DESIGN PATTERN CRAP. I want total control of my views not some microsoft MFC type crud!</p> <pre><code>Sys_Mail* g_root_vc; if (g_root_vc == nil) { // create an empty view controller so we have something to work with g_root_vc = [[Sys_Mail alloc] init]; g_root_vc.view = (UIView*) gMasterView; } </code></pre> <p>so this </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload