src/video/uikit/SDL_uikitview.m
branchiOS-improvements
changeset 9524 9de159f9cefd
parent 9519 37ade10d4570
child 9525 64e3f446d6d7
     1.1 --- a/src/video/uikit/SDL_uikitview.m	Thu Nov 20 17:19:26 2014 -0400
     1.2 +++ b/src/video/uikit/SDL_uikitview.m	Thu Nov 20 18:45:04 2014 -0400
     1.3 @@ -52,7 +52,7 @@
     1.4  
     1.5  - (id)initWithFrame:(CGRect)frame
     1.6  {
     1.7 -    if (self = [super initWithFrame: frame]) {
     1.8 +    if (self = [super initWithFrame:frame]) {
     1.9  #if SDL_IPHONE_KEYBOARD
    1.10          [self initializeKeyboard];
    1.11  #endif
    1.12 @@ -69,7 +69,7 @@
    1.13  
    1.14  - (CGPoint)touchLocation:(UITouch *)touch shouldNormalize:(BOOL)normalize
    1.15  {
    1.16 -    CGPoint point = [touch locationInView: self];
    1.17 +    CGPoint point = [touch locationInView:self];
    1.18  
    1.19      if (normalize) {
    1.20          CGRect bounds = self.bounds;
    1.21 @@ -123,7 +123,7 @@
    1.22          at once, or perhaps in other circumstances.  Usually (it seems)
    1.23          all active touches are canceled.
    1.24      */
    1.25 -    [self touchesEnded: touches withEvent: event];
    1.26 +    [self touchesEnded:touches withEvent:event];
    1.27  }
    1.28  
    1.29  - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
    1.30 @@ -154,7 +154,7 @@
    1.31  /* Set ourselves up as a UITextFieldDelegate */
    1.32  - (void)initializeKeyboard
    1.33  {
    1.34 -    textField = [[UITextField alloc] initWithFrame: CGRectZero];
    1.35 +    textField = [[UITextField alloc] initWithFrame:CGRectZero];
    1.36      textField.delegate = self;
    1.37      /* placeholder so there is something to delete! */
    1.38      textField.text = @" ";
    1.39 @@ -171,7 +171,7 @@
    1.40      textField.hidden = YES;
    1.41      keyboardVisible = NO;
    1.42      /* add the UITextField (hidden) to our view */
    1.43 -    [self addSubview: textField];
    1.44 +    [self addSubview:textField];
    1.45      
    1.46      _uikit_keyboard_init();
    1.47  }
    1.48 @@ -204,7 +204,7 @@
    1.49          int i;
    1.50          for (i = 0; i < [string length]; i++) {
    1.51  
    1.52 -            unichar c = [string characterAtIndex: i];
    1.53 +            unichar c = [string characterAtIndex:i];
    1.54  
    1.55              Uint16 mod = 0;
    1.56              SDL_Scancode code;