title: On iOS 7 UISearchBar left align placeholder text?
body: <p>On iOS 7 UISearchBar the placeholder text is centred and I want to disable that and make it always stick to the left like it was before. </p>
  
  <p><img src="https://i.stack.imgur.com/coyH2.png" alt="enter image description here"></p>
  
  <p>There is a private method setCenterPlaceholder, on the diffs and calling this with a BOOL will make the trip. <a href="https://gist.github.com/nscoding/7220368" rel="noreferrer">https://gist.github.com/nscoding/7220368</a></p>
  
  <p><strong>Header file</strong></p>
  
  <pre><code>@interface NSCodingSearchBar : UISearchBar
  
  // Default by the system is YES.
  // https://github.com/nst/iOS-Runtime-Headers/blob/master/Frameworks/UIKit.framework/UISearchBar.h
  @property (nonatomic, assign, setter = setHasCentredPlaceholder:) BOOL hasCentredPlaceholder;
  
  @end
  </code></pre>
  
  <p><strong>Implementation file</strong></p>
  
  <pre><code>#import "NSCodingSearchBar.h"
  
  
  // ------------------------------------------------------------------------------------------
  
  
  @implementation NSCodingSearchBar
  
  
  // ------------------------------------------------------------------------------------------
  #pragma mark - Initializers
  // ------------------------------------------------------------------------------------------
  - (instancetype)initWithFrame:(CGRect)frame
  {
      if ((self = [super initWithFrame:frame]))
      {
          self.hasCentredPlaceholder = YES;
      }
  
      return self;
  }
  
  
  // ------------------------------------------------------------------------------------------
  #pragma mark - Methods
  // ------------------------------------------------------------------------------------------
  - (void)setHasCentredPlaceholder:(BOOL)hasCentredPlaceholder
  {
      _hasCentredPlaceholder = hasCentredPlaceholder;
  
      SEL centerSelector = NSSelectorFromString([NSString stringWithFormat:@"%@%@", @"setCenter", @"Placeholder:"]);
      if ([self respondsToSelector:centerSelector])
      {
          NSMethodSignature *signature = [[UISearchBar class] instanceMethodSignatureForSelector:centerSelector];
          NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:signature];
          [invocation setTarget:self];
          [invocation setSelector:centerSelector];
          [invocation setArgument:&amp;_hasCentredPlaceholder atIndex:2];
          [invocation invoke];
      }
  
  }
  
  
  @end
  </code></pre>
  
  <p>I am wondering if there is any other, not "Hacky way" that does the same thing.</p>