src/video/uikit/SDL_uikitviewcontroller.m
changeset 6011 83a21d3bd5c1
parent 6003 fddf81967e2d
child 6044 35448a5ea044
equal deleted inserted replaced
6010:508aa078acc0 6011:83a21d3bd5c1
    31 #import "SDL_uikitviewcontroller.h"
    31 #import "SDL_uikitviewcontroller.h"
    32 
    32 
    33 
    33 
    34 @implementation SDL_uikitviewcontroller
    34 @implementation SDL_uikitviewcontroller
    35 
    35 
       
    36 @synthesize window;
       
    37 
    36 - (id)initWithSDLWindow:(SDL_Window *)_window
    38 - (id)initWithSDLWindow:(SDL_Window *)_window
    37 {
    39 {
    38     if ((self = [self init]) == nil) {
    40     self = [self init];
       
    41     if (self == nil) {
    39         return nil;
    42         return nil;
    40     }
    43     }
    41     self->window = _window;
    44     self.window = _window;
    42     return self;
    45     return self;
    43 }
    46 }
    44 
    47 
    45 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient
    48 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orient
    46 {
    49 {