Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>OK, I finally figured it out. It wasn't very intuitive, but it works. This answer came from: <a href="http://www.idevgames.com/forums/thread-1773.html" rel="nofollow">http://www.idevgames.com/forums/thread-1773.html</a></p> <p>1) add new file... Cocoa Touch Classes->UIViewController subclass, and name it GLViewController 2) in GLViewController.m, add #import "PaintingView.h" at the top, and in the loadView method, add:</p> <pre><code>CGRect rect = [[UIScreen mainScreen] applicationFrame]; self.view = [[PaintingView alloc] initWithFrame:CGRectMake(rect.origin.x, rect.origin.y, rect.size.width, rect.size.height)]; </code></pre> <p>and further down, make a modification:</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOr​ientation { return YES; } </code></pre> <p>3) in AppController.m, add #import "GLViewController.h" at the top, and in applicationDidFinishLaunching, add this:</p> <pre><code>GLViewController *viewController = [[GLViewController alloc] init]; UIToolbar *mainTools = [UIToolbar new]; mainTools.frame = CGRectMake(0, 0, 300, 50); UIBarButtonItem *newButton = [[UIBarButtonItem alloc] initWithTitle:@"Help!" style:UIBarButtonItemStyleBordered target:self action:nil]; [mainTools setItems:[NSArray arrayWithObjects:newButton, nil]]; [[viewController view] addSubview:mainTools]; [window addSubview:[viewController view]]; </code></pre> <p>You'll have to change your GL transforms and touch coordinates to suit, but this'll get you autorotating. </p> <p>Hope this is helpful to someone else besides myself.</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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. 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