src/video/uikit/SDL_uikitview.m
branchiOS-improvements
changeset 9505 6fc615dfc93f
parent 9503 bff6f1fecc5d
child 9506 18e3f94bd860
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Thu Jul 24 22:35:25 2014 -0300
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Tue Jul 29 00:05:48 2014 -0300
     1.3 @@ -51,23 +51,18 @@
     1.4  
     1.5  }
     1.6  
     1.7 -- (void)dealloc
     1.8 -{
     1.9 -    [super dealloc];
    1.10 -}
    1.11 -
    1.12  - (id)initWithFrame:(CGRect)frame
    1.13  {
    1.14 -    self = [super initWithFrame: frame];
    1.15 -
    1.16 +    if (self = [super initWithFrame: frame]) {
    1.17  #if SDL_IPHONE_KEYBOARD
    1.18 -    [self initializeKeyboard];
    1.19 +        [self initializeKeyboard];
    1.20  #endif
    1.21  
    1.22 -    self.multipleTouchEnabled = YES;
    1.23 +        self.multipleTouchEnabled = YES;
    1.24  
    1.25 -    touchId = 1;
    1.26 -    SDL_AddTouch(touchId, "");
    1.27 +        touchId = 1;
    1.28 +        SDL_AddTouch(touchId, "");
    1.29 +    }
    1.30  
    1.31      return self;
    1.32