btstack/example/WiiMoteOpenGLDemo/Classes/EAGLViewController.m

29 lines
697 B
Mathematica
Raw Normal View History

//
// EAGLViewController.m
//
// Created by Matthias Ringwald on 10/23/09.
//
#import "EAGLViewController.h"
#import "EAGLView.h"
@implementation EAGLViewController
// The simplest UIViewController subclass just overrides -loadView.
- (void)loadView
{
UIView *view = [[EAGLView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
self.view = view;
[view release];
2009-10-24 13:57:19 +00:00
self.title = @"BTstack WiiMote Demo";
// disable back button
self.navigationItem.hidesBackButton = TRUE;
}
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
@end